ClearMenuItems

Category: Objects / Menu
Since engine version: 1.0 OC

Description

Removes all entries from a menu.

Syntax

int ClearMenuItems();

Example

var clonk=GetCursor();
clonk->CreateMenu(Clonk, clonk, nil, "", 0, 2);
clonk->AddMenuItem("", "", Gold, nil,nil,"Old Text");

[...]

clonk->ClearMenuItems();
clonk->AddMenuItem(nil, "", Gold, nil,0,0,"New Text");
Opens a text window containing the entry "Old Text" for the selected clonk. Then changes the entry to "New Text".
See also: AddMenuItem, CloseMenu, CreateMenu
Sven2, 2003-06