Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DEACTIVATE POPUP and HIDE POPUP difference
Message
 
 
À
22/09/2003 07:31:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
00831025
Message ID:
00831286
Vues:
28
There is a difference, I think.... to illustrate...

Working in VFP 7 or 8, execute the following lines of code:

DEFINE POPUP x
DEFINE BAR 1 OF x PROMPT "something"
DEFINE BAR 2 OF x PROMPT "something"

ON KEY LABEL f5 acti popup x nowait
ON KEY LABEL f4 acti popup x
ON KEY LABEL f3 hide popup x
ON KEY LABEL f2 deacti popup x

press f4. you see the popup

press f3. it will not disappear

press f2. it will disappear

The key here is that the popup is active at the time that the hide and deac commands have been issued. Note that there was no NOWAIT on the ACTI command you invoked with f4.

I think that you can't HIDE an active popup, it will show similar behavior to "current GET/_CUROBJ" in 2.x or the "control that currently has focus" in VFP.

You can DEAC it, of course, and then it disappears, because this is the way of popups that are no longer waiting for user input <s>.

You should be able to hide a popup if it has been ACTI'd with NOWAIT but you can see why that is different:

press f5. you see the popup but now it isn't waiting for user input

press f3. this time it will disappear


>L<
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform