Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Top Level Dialog box woes
Message
De
26/09/2001 21:10:39
 
 
À
26/09/2001 11:23:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00561009
Message ID:
00561300
Vues:
21
This message has been marked as a message which has helped to the initial question of the thread.
You can set this properties, maybe works like you want:

WindowType = 1 && Modal
Autocenter = .T. && To autocenter on screen

If you want to center on current form instead of autocenter, you can do this:
do form mymodalform with thisform && or: with _Screen

Then on init method:
Parameters oForm

Local nTop, nLeft

nTop = (oForm.Height - this.height) / 2
nLeft = (oForm.Width - This.Width) / 2
This.Move(nTop, nLeft)

***
Code not tested, I hope this help

Mauricio
Be fast like the Fox
Be free like the Penguin
Se Rápido como el Zorro
Se libre como el Pingüino
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform