Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I change the screen location of a form
Message
De
14/04/2009 23:40:53
Luis Navas
Independent Consultant
Auckland, Nouvelle Zélande
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01394894
Message ID:
01394896
Vues:
58
>the current code places the form at top left hand side of screen. Does anyone know how to get it to the center of my screen?
>tnx
>
>k
>
>frmMyForm = CREATEOBJECT('Form') && Create a form
>frmMyForm.Closable = .f. && Disable the window pop-up menu
>frmMyForm.caption = [MyText]
>
>frmMyForm.AddObject('cmdCmndBtn1','cmdMyCmndBtn1')
>frmMyForm.AddObject('cmdCmndBtn2','cmdMyCmndBtn2')
>
>frmMyForm.cmdCmndBtn1.Visible =.T.
>frmMyForm.cmdCmndBtn2.Visible =.T.
>frmMyForm.SHOW && Display the form
>
>READ EVENTS && Start event processing

frmMyForm.AutoCenter =.T.
frmMyForm.Show()
I never forget a face, but in your case I will make an exception :-)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform