Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to call modal form from modal form PROPERLY?
Message
 
 
À
01/02/2001 04:43:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00471146
Message ID:
00471148
Vues:
19
Hi!

I don;t know exacly, but it seems for me that the problem could be solved.

When you hide form, it loses its modal state. Thus second 'show' just shows it non-modal and current modal form is currently in the focus.

Try to use show() method with modal parameter to force form to be shown as modal.

Another though is to try to call Activate method of that form.

HTH.

>Hello everybody,
>
>
>I have a problem with calling second modal form from another modal form.
>Usualy I have the following code to run second moddal form:
>
>if type([thisform.roObj])=[O] and !isnull(thisform.roObj)
>else
>thisform.roObj=createobj([secondmodalform])
>endif
>thisform.roObj.Show()
>
>
>instead of releasing second form I just Hide() it, so, it could be reused on next button click
>this code works just fine for first time but then on second or third run second modal form shows up active but BEHIND the first form.
>
>So, the question is how to avoid this, is there any way to bring second modal form to top in any case?
>
>
>TIA
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform