Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't make a form modal
Message
 
To
03/01/2007 23:21:56
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01182093
Message ID:
01182105
Views:
12
This message has been marked as the solution to the initial question of the thread.
>I have a form whose windowtype property is set to 1 = modal.
>However, when it is displayed using DO FORM, it always becomes modeless, its windowtype property = 0.
>Some datapoints:
>1. This form is twice subclassed from the base class form.
>2. The first subclass, in a class library, has a windowtype value of 0.
> However, whether it is set to 0 or 1, the form that inherits this one
> always ends up being 0 = modeless, even though its own windowtype value
> is initially 1.
>3. I've looked for calls to the form's show method with no parameters but don't see any that would change the windowtype.
>4. The form behaves the same way if it is changed to an object and instantiated using CREATEOBJECT.
>
>Any other ideas about how this could happen?
>
>Thanks,
>Howard

Check your ShowWindow property. If it is equal to 2 - As Top Level form, WindowType is ignored. Top level forms are always Modeless.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform