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

I've never done what you're doing but how about in the .Init() of the form you have:

This .visible = .F.
* then the positioning code
This .visible = .T.

Terry

>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
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Reply
Map
View

Click here to load this message in the networking platform