>>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.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only