Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Forms Visible Property
Message
De
31/08/2007 05:59:13
Jon Neale
Bond International Software
Wootton Bassett, Royaume Uni
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Forms Visible Property
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Database:
Visual FoxPro
Divers
Thread ID:
01251595
Message ID:
01251595
Vues:
51
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform