bgiSetMenuItemText

Changes the display text of a menu item. Takes userDefinedID (Int) and text (String). Returns 1 on success, 0 if item or parent not found.

BGI GUI

Parameters & Returns

Parameters

userDefinedID Int
text String

Returns

Int

Quick Summary

Changes the display text of a menu item. Takes userDefinedID (Int) and text (String). Returns 1 on success, 0 if item or parent not found.

Technical Exegesis...

Changes the display text of a menu item identified by userDefinedID. Searches menuMap for the item with matching userDefinedID to find its parentID. Then searches for the parent submenu. Calls ModifyMenu with MF_BYCOMMAND | MF_STRING to change the item's text while preserving its ID and state. Updates the internal CMenu.text field. Returns 1 on success, 0 if item or parent not found.

Use the same userDefinedID that was passed to bgiAppendSubMenuItem.

Example

Example.bam
; No example implemented yet