Information générale
Catégorie:
Gestionnaire de menu & Menus
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement