Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to find Item Number on a menu?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01107544
Message ID:
01107554
Vues:
25
This message has been marked as the solution to the initial question of the thread.
Try
DEFINE PAD padTest OF _MSYSMENU PROMPT "Test"
ON PAD padTest OF _MSYSMENU ACTIVATE POPUP popTest
DEFINE POPUP popTest MARGIN RELATIVE COLOR SCHEME 4
DEFINE BAR 1 OF popTest PROMPT '\<One'
DEFINE BAR 2 OF popTest PROMPT '\<Two'
DEFINE BAR 3 OF popTest PROMPT 'T\<hree'
DEFINE BAR 4 OF popTest PROMPT '\<Four'
FOR i = 1 TO CNTBAR('popTest')
	IF PRMBAR('popTest', i) = 'Two'
		RELEASE BAR (i) OF popTest
	ENDIF
ENDFOR
>I want to remove an item from a menu. I am using Release Bar syntax as:
>
>
>RELEASE BAR nMenuItemNumber of MenuName
>
>
>But I need to find the nMenuItemNumber by item prompt text and I don't seem to find a function for that. Or maybe there is another property the item could have which would help me find the item number.
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform