Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Menu Scope and PrmBar()
Message
 
 
À
24/01/2003 11:44:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
00745121
Message ID:
00745308
Vues:
27
This message has been marked as the solution to the initial question of the thread.
Gary,

Maybe there's no bar #1 in that menu? It's possible if POPUP crerated with RELATIVE claus. Also, what you get if you run
?  PrmBar('Ctxmenu', 1)
from command window?


>I have a context menu that is created in a form method using DEFINE POPUP.
>
>I then call an external class and in that class, I have used the Prmbar() funtion to return the prompt as follows :-
>
>
>m.cPrompt = PrmBar('Ctxmenu', 1)
>
>
>I get an error message saying "No such menu or menu item is defined".
>
>I have also SET STEP ON in the form and prior to calling the class in question, gone to the command window and tried the same thing only to get the same error message. However, if I issue :-
>
>
>ACTIVATE POPUP Ctxmenu
>
>
>The menu activates (frome the Command Window) like a good 'un <s>.
>
>Any ideas why PrmBar is failing? Is the menu scoped to the form in which it was created? I assumed menus were in memory and accessible from anywhere irrespective of where they were initially defined. If they are scoped, in this case, to the form, is there any way of referencing the menu from a different class?
>
>Many thanks for any help!
>
>Best
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform