Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Well-centered person says FORM DOES NOT CENTER ON SCREEN
Message
From
03/05/2001 12:37:34
Jonathan Cochran
Alion Science and Technology
Maryland, United States
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00503110
Message ID:
00503115
Views:
26
Do you maximize the main VFP window (_SCREEN.WINDOWSTATE=2, or some other way)? If so, do you do this after the DO FORM? The AutoCenter will only center the form at the time of instantiation, and will center the form within the FoxPro desktop.

>I have a VFP 6.0 form 640 x480 in size. I am looking at it in Windows set at 800x600. It is off to the left and touches the top of the screen.
>
>The form centers perfectly when I run the .PRG from the project window which DOes the form. But when I make into .EXE and run the .EXE the form is no longer centered.
>
>The form property is set to AutoCenter = .T.
>
>I also tried putting THISFORM.AutoCenter = .T. in the Form Init.
>
>I wonder what's wrong? The .EXE build must be affecting it somehow.
>
>Any ideas? Thanks very much.
>
>Note: This problem should not happen to a well-centered person like me.
Previous
Reply
Map
View

Click here to load this message in the networking platform