886
Appendix A: System Routines — Menus
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
MenuLoad
Declaration:
HANDLE
MenuLoad
(const MENU *
BaseMenu
, WORD
Size
)
Category(ies):
Menus
Description:
Begin a dynamically created menu, using a ROM based menu as the
starting point (the menu’s flags, width, and height are stored in the ROM
structure). Return the HANDLE of the new dynamically created menu
which may be used in
DynMenuAdd
or
DynMenuChange
and then
passed to
MenuBegin
to draw the menu.
Inputs:
BaseMenu
— The address of a MENU structure created by the
resource compiler.
Size
— The number of bytes in the MENU (the resource compiler
always defines a label with the base name of the MENU
and “_end” appended which may be used to determine
the length — see example below).
Outputs:
A dynamic menu handle or H_NULL if not enough memory.
Assumptions:
None
Side Effects:
May cause heap compression.
Availability:
On AMS 2.00 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: MenuBegin, MenuNew, DynMenuAdd, DynMenuChange
Especially see
MenuNew
for restrictions on creating and using dynamic
menus.
(continued)