General information
Category:
Forms & Form designer
Thanks Maurico
I may change my dialog boxes to work the way you suggest.
The solution I have adopted at present is to alter the wrapper code for the dialog in my procedure library. If the wrapper finds there is no window available to show the dialog then it activates the splash screen and shows the dialog in there instead.
Mark
>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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only