Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Modal form just in relation with other form
Message
From
22/10/2004 16:52:34
 
 
To
22/10/2004 16:02:07
Héctor Lizarraga
Gobierno Del Edo de Querétaro
Querétaro, Mexico
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00953859
Message ID:
00953871
Views:
15
>How can I simulate a modal form that the 'modal' mode is only related with another form, not the entire application?
>
>thanks in advance
>Héctor L.

Once you've gone to some other form (not part of your set), how would you prevent going back to your Part1 form that you want your Part2 to be modal to?

Update:

Well you could do something along these lines:

1) In your Part1 form, save a reference to your Part2 form in some property when you kick off part2.

2) In the Deactivate of your Part2 form, you could check if the _SCREEN.ActiveForm is your Part1 form. If it is, SetFocus back to some control on Part2.

3) In the Activate of your Part1 Form, check if the property you created in step one is an object and that it's not NULL. If it meets those conditions, your Part2 form is still active, so SetFocus to some control on it.

These does sem to work OK, it does allow you to click on other forms that are not part of your set, but if you try to click back on your Part1 form, it re-directs control back to Part2.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform