Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What the #$%@#%
Message
From
19/10/1999 16:56:04
 
 
To
19/10/1999 16:51:07
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00278418
Message ID:
00278488
Views:
17
>I've found that by setting a form to autocenter at design time, that the first time I run the form it's in the center. Because I leave my forms movable, if I move it and close the form Foxpro remembers where the form was on the screen the last time it was run and opens it in it's last position. Regardless of the autocenter setting. I've never tried setting autocenter in the init at runtime.
>

Sounds like you're not really closing the forms, only hiding them and then making them visible again later. Or maybe you have some code that stores where it was. There's no native VFP way of keeping the location automatically, you have to do it yourself.


>
>>>>Why does VFPF*&&@ing6 start forms at a position decided by itself. Even if autocenter is .T. it offsets the form and does other weird stuff. If I set a form to autocenter .T. I want the damn thing to be in the f@$# center.... Nowhere else... OK!!!
>>
>>>Because of some internal Visual FoxPro calculations it is not enough if you set form.AutoCenter = .t. in the development environment. You have to reissue this.AutoCenter = .t. in Form.Init()
>>
>>I have never had to do this. Can you give me an example where this would need to be done?
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform