Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change a modal form to modeless at run time?
Message
 
 
À
16/12/1998 07:37:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00167980
Message ID:
00168151
Vues:
23
Abe,

I just played around with a little code like this in a form.Deactivate() method:

if ( this.lPseudoModal )
nodefault
this.text1.SetFocus()
endif

It pretty much achieves what you are looking for.

Although you ought to give the user a clear indication that the form has gone modal on them.

>In my application I'm showing 2 forms in the screen, both are modeless. Normally the user is allowed to switch from one form to another. But in some situations, I need to temporarily change the form from modeless to modal, then turn it back. I have no problem with the first step, in which I used something like:
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform