# ClearMenuItems

Objects
Menu
5.1 OC
int
Removes all entries from a menu.
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".
CreateMenu
AddMenuItem
CloseMenu
Sven2
2003-06