Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is a shortcut menu active ?
Message
De
06/09/2002 12:20:10
 
 
À
06/09/2002 05:34:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00696530
Message ID:
00697601
Vues:
13
I do not know any universal solution for this case. But I also do not understand why I would like to know if the parent menu is activated or not. If the child menu is active and if it can be activated only thru an item on the parent menu than the fact that the child menu is active means that the parent manu is visible, isn't it?

Anyways, it seems to me that you put too much complexity into your menu system if you need to know if the menu is defined and / or activated.

>Thanks for the clarifications. But suppose you have a shortcut menu and by choosing a menuitem you activate a submenu. How do I know that the first shortcut menu has allready been activated and is been showed on the screen
>
>Dim.
>
>>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