Appendix A: System Routines — Menus
873
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
DynMenuChange
Declaration:
HANDLE
DynMenuChange
(HANDLE
hMenu
, short
Id
,
const void *
newName
, WORD
Flags
);
Category(ies):
Menus
Description:
Change a previous entry in a dynamic menu.
Inputs:
hMenu
— Handle to a dynamic menu created with
MenuNew
or
MenuLoad
.
Id
— ID of entry to change.
newName
— Pointer to new text string, ICON or BITMAP.
Flags
— One of the following flags must be set:
DMF_TEXT —
Name
points to a text string.
DMF_ICON —
Name
points to an ICON.
DMF_BITMAP —
Name
points to a BITMAP.
Outputs:
hMenu
if successful, H_NULL if out of memory or
Id
not found.
Note that if there is an error adding the new entry, the MF_ERROR bit in
MenuFlags
(
hMenu
) is set.
Assumptions:
None
Side Effects:
May cause heap compression.
Availability:
On AMS 2.00 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: MenuNew, MenuLoad, DynMenuAdd
Example:
See
PopupBegin
.