>>I've redefined the dimensions of my main app window to 400x228 (heightxwidth). I need to center the app in the users window.
>>Because this is the main foxpro window the autocenter property is not available.
>>
>>Please help my tired brain remember the trick to solving this problem.
>>
>>TIA
>>
>>Brad
>
>How about _screen.autocenter = .t.? This worked for me.
Ensure you set autocenter AFTER resizing :
_screen.height = 400
_screen.width = 222
_screen.autocenter = .T.
I don't think the autocenter status prior to resizing matters, but the centering operation seems to be done only when the property is set.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement