Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Modal form and menus
Message
De
28/02/2001 16:23:21
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Modal form and menus
Divers
Thread ID:
00480727
Message ID:
00480727
Vues:
30
Hello, All.

I've just discovered a very strange behaviour:

I have one modal form used as messagebox. It has a private datasession, but the weirdness appears in default datasession, also.

The form (I will name it MESAJ) have a timer. In the .Timer event I have the following code:
btn = THISFORM.ButonImplicit && here I extract the name of the push button
&btn..CLICK
The role of the timer is to release the form, passing back a parameter, representing the value of the push button.

The window MESAJ works just fine under any circumstances, except one:

If the user drops down a menu (as you surely know, until the MESAJ.RELEASE event, the menus are disabled, but they can be dropped down) and if as long as the menu is visible the timer fires, the menu closes and I cannot regain control of my app. The app doesn't respond anymore to mouse clicks nor keys pressed. It is active (I've tested this, dropping a timer onto another form and watching it working); more than that, the window title bar is blue - wich clearly means the app is active, but it doesn't respond to user interaction anymore. I work with VFP6 SP4.

Does anybody seen this or know how to avoid it?

Thank you very much.
Grigore Dolghin
Grigore Dolghin
Class Software.
Répondre
Fil
Voir

Click here to load this message in the networking platform