Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Top Level Dialog box woes
Message
From
26/09/2001 21:10:39
 
 
To
26/09/2001 11:23:25
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00561009
Message ID:
00561300
Views:
19
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform