Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Top Level Dialog box woes
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00561009
Message ID:
00561014
Views:
21
This message has been marked as a message which has helped to the initial question of the thread.
>I have a nice dialog box modal form class I use.
>
>It has its show window property set to 1 - In Top Level Form
>
>This means that the modal dialog box is always centered in whatever form called it. This is handy if there are many forms on the desktop.
>
>I have just written an app that has no forms visible on startup and this class has stopped working because it has nowhere to display.
>
>If I change the class so that its show window is 2 - As Top Level Form
>then the dialog box becomes modeless which is not the desired effect and an additional read events would be required to make the dialog display.
>
>I want to change this class so that it will work even if there are no windows for it to display in.
>
>Is there someway my class can create a Top Level form window external to it self and display itself in there if it finds that vfp.form.count is zero, or will all forms it creates end up being children of the dialog.
>
>I reaslise I can do this if I create a wrapper for my class in my procedure library but I want to keep this functionalty in my class if possible.
>
>Maybe I could create a generic function that creates a form and then runs the dialog such as.
>
>=RUNINFORM('MYDIALOG('Hello There'))
>
>All ideas on this subject most gratefully received.

Mark,

Win32 does not support modal top-level forms. Sorry.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform