Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is a shortcut menu active ?
Message
De
06/09/2002 00:07:45
 
 
À
05/09/2002 05:50:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00696530
Message ID:
00697355
Vues:
10
POPUP() without parameters returns a name of active popup as a character value. Since we can have just one popup keep "focus" at a time, if POPUP() (without parameters) returs anything, then it is the name of currently active (i.e having "focus" from GUI point of view) popup. On the other hand, if you call POPUP() function with a character parameter, it return .T. if a popup whose name is specified by the parameter is defined. Getting that .T., you cannot tell in the popup is active or not. To tell this, you have to call POPUP() function without parameters abd compare its output with the popup name.

>>Shortcut menu is created with DEFINE POPUP command and is activated with ACTIVATE POPUP command. So, you should be able to use POPUP() function to determine what popup is active at the moment if any and POPUP() to see if the shortcut popup is defined or not.
>>
>>>Is there a way to find out if a certain shortcut menu is defined and active ?
>>>
>>>Dimitris
>
>
>popup() returns .t. when the popup is defined or when the popup is defined and activated, how can you differentiate if the menu is activated and not just defined ...
>
>Dimitris
Yuri Rudenko
MCSD, MCP
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform