Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keeping a non modal form active.
Message
 
To
17/06/1998 02:54:43
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00108964
Message ID:
00109029
Views:
71
>Surely i'm asking a very basic question of VFP, but i'm losing something:
>
>I know that if you want to keep a non-modal form active you must issue 'read events' in the main program. But how to keep a non-modal form called by one modal form active? Is this possible? How?
>
>Modal form
> commandbutton
> call to non-modal form (it disappears inmediately)
Carlos,

I don't think you will succeed at this one because;

you hit the button in the modal form
the click code runs and executes the non-modal form
the click code completes and focus is again in the modal form
the modal form will NOT give up focus to the non-modal form

The only solution is to pass a parameter to the non-modal form that tells it to make itself modal this time by changing the windowtype property in the init.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform