Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Modal form just in relation with other form
Message
De
22/10/2004 16:52:34
 
 
À
22/10/2004 16:02:07
Héctor Lizarraga
Gobierno Del Edo de Querétaro
Querétaro, Mexique
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00953859
Message ID:
00953871
Vues:
16
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform