MenuItem

MenuItemSetCaption

Set the caption of the item

Syntax

Signature
xBool         MenuItemSetCaption( MenuItem *item, const char *caption );

Arguments

item the menu item to change.

caption the text to copy, or NULL for an empty string. & marks the following character as the accelerator. MENU_SEPARATOR makes the item a separator.

Return value

T on success, or F if the object is NULL.

Description

Setting `MENU_SEPARATOR` clears the block, releases any submenu and disables the item.

To reuse a separator as a regular item, set a regular caption, assign a block or submenu and enable the item.

See also