Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I can't believe I'm asking this....
Message
From
30/04/1999 09:37:35
Paul Frost
Instem Computer Systems Ltd
Stone, United Kingdom
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00213782
Message ID:
00213862
Views:
32
>>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
Map
View

Click here to load this message in the networking platform