Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Forms Visible Property
Message
From
31/08/2007 05:59:13
Jon Neale
Bond International Software
Wootton Bassett, United Kingdom
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Forms Visible Property
Environment versions
Visual FoxPro:
VFP 9 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01251595
Message ID:
01251595
Views:
53
Hi All,

I think I'm being dumb here, not the first time either.

I have a form that I'm calling with something like:
DO FORM SUBSTR(xfsys->xf_prog,6) name oForm

but when I call the form I need to position it so the actual code is:
DO FORM SUBSTR(xfsys->xf_prog,6) name oForm
oForm.Left = (((_vfp.width - oNavigation.width)/2) - (oForm.Width/2)) + oNavigation.Width
oForm.Top = (((_vfp.Height-110)/2) - (oForm.Height/2))

What currently happens is the form pops up on screen and then is repositioned, this looks a little clunky to say the least. So I thought i'd set the visible property of the form baseclass to .F., position the form then show it. This doesnt seem to work, I have checked the actual form, not the baseclass, and its visible property is also set to .F.. I do have some code in the activate method and its here that it seems to be changing it to .t..

What am I missing here, other than a few brain cells, should this approach work or am I off the mark?

Any help appreciated.

Thanks

Jon
Next
Reply
Map
View

Click here to load this message in the networking platform