Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Modal form and menus
Message
From
28/02/2001 16:23:21
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Modal form and menus
Miscellaneous
Thread ID:
00480727
Message ID:
00480727
Views:
31
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.
Reply
Map
View

Click here to load this message in the networking platform