Purpose |
Set the text of a given menu item. |
Syntax |
MENU SET TEXT hMenu, [BYCMD] pos&, txt$ |
Remarks |
Set the text of the menu item identified by pos&. |
hMenu |
Double-word or Long-integer variable containing the handle of the menu that contains the menu item to change. |
pos& |
Position within the menu, of the menu item to be changed. If the BYCMD option is used, pos& specifies the unique menu item identifier of the item to change. Otherwise, pos& indicates the physical position of the menu item within the menu, where pos& = 1 for the first position, pos& = 2 for the second position, and so on. |
txt$ |
The new text for the menu item. |
See also |
Dynamic Dialog Tools, Menus, MENU ADD POPUP, MENU ADD STRING, MENU ATTACH, MENU DELETE, MENU DRAW BAR, MENU GET STATE, MENU GET TEXT, MENU NEW BAR, MENU NEW POPUP, MENU SET STATE |