924
Appendix A: System Routines — Operating System
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
EV_setCmdState
Declaration:
void
EV_setCmdState
(UINT
cmd
, BOOL
state
)
Category(ies):
Operating System
Description:
Enables or disables a menu item. A disabled menu item is dimmed and
cannot be selected by the user.
Inputs:
cmd
— menu item ID — the command number given to the item when
the menu resource was created.
state
— TRUE — Enable command.
FALSE — Disable command (dim menu item).
Outputs:
None
Assumptions:
This routine uses the menu handle in application frame attribute
OO_APP_DEFAULT_MENU_HANDLE. See section
9.6. Menu
Processing
for guidelines on setting up a menu where default event
handling can find it.
Side Effects:
None
Availability:
All versions of the TI
-
89 / TI
-
92 Plus.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: EV_setCmdCheck, EV_setFKeyState,
section
9.6. Menu Processing
Example:
EV_setCmdState(CM_SAVE_AS, FALSE); /* disable Save As . . . command */