Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form not centering
Message
From
05/05/1998 15:33:47
 
 
To
05/05/1998 14:35:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00096887
Message ID:
00097136
Views:
24
>>>>I have Autocenter set to .T.. It does center on a 1024X768 screen, just
>not a 800X600 screen
>>>
>>>You are not listening. Explicitly set AutoCenter to True *again* in the
>form Init. The problem here is the internal event that calculates the
>AutoCenter coordinates occurs too early for your needs. Force-feed it to
>happen again.
>>
>>This has nothing to do with *not listening*, I simply did not understand
>how it works. Since you can not place any code in the _Screen.Init()
>method, how do I accomplish this with _SCREEN. Thank you.
>
>I got to this thread late. Perhaps Steven means:
>
>YOURFORM.INIT
>thisform.autocenter=.t.

I believe he wants to center the _SCREEN on the desktop, in which case he should be able to just before making the _SCREEN visible, set the AutoCenter:
_SCREEN.AutoCenter = .T.
_SCREEN.Visible = .T.
Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform