Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Forms Visible Property
Versions des environnements
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement