Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to maintain Top, Left values with AutoCenter = .T.
Message
From
04/08/2008 04:04:42
 
 
To
04/08/2008 03:13:08
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01336194
Message ID:
01336203
Views:
28
This message has been marked as the solution to the initial question of the thread.
Hi Lim,

you could keep AutoCenter = .T. but within the INIT-Event of your form there would be the following code:


IF _vfp.StartMode = 0
Thisform.Top = 0
Thisform.Left = 0
ENDIF


>>Hi Lim.
>>
>>When you set AutoCenter to .T. you are telling VFP to ignore the Top and Left values and automatically center the form in the display. If you want it to appear where the Top and left point, then don't turn AutoCenter on, leave it at .F.
>>
>>Ian Simcock.
>>
>
>The odd thing is, VFP not really ignore Top and Left properties, it reset them to default values.
>The problem is, I need the form to be at top left corner at design time, but center when run...
Best Regards
-Tom

Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.

Oh, and BTW: 010101100100011001010000011110000101001001101111011000110110101101110011
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform