MenuTopStat Function (ROM Call 0x3D)

menus.h

void MenuTopStat (HANDLE ExecHandle, short Item, short State);

Changes the state (enabled/disabled) of a toolbox.

MenuTopStat changes the state of the toolbox Item (0 = first, 1 = second, etc.) which belongs to the menu associated with the handle ExecHandle. ExecHandle is a handle returned from the MenuBegin function, not one returned from MenuNew. State is a boolean value: if it is TRUE, the toolbox will be enabled; if it is FALSE, the toolbox will be disabled (i.e. it will be dimmed and cannot be selected).

MenuTopStat does not redraw the menu according to the new state; this must be done manually by calling MenuOn.


Used by: EV_setFKeyState, handleVarLinkKey


See also: MenuSubStat