Menupopup - Texas Instruments TI-89 Developer's Manual

Graphing calculator
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

892

MenuPopup

Declaration:
WORD MenuPopup (const MENU * Popup , short x0 , short y0 ,
short Offset )
Category(ies):
Menus
Description:
Execute a static POPUP as defined by the resource compiler, returning
the item selected.
Menu
Inputs:
x0 , y0
Offset
Outputs:
0
1 . . . 0xFFF
Assumptions:
MenuPopup is only used for static POPUPs created by the resource
compiler.
May cause heap compression.
Side Effects:
Availability:
All versions of the TI-89 / TI-92 Plus.
TI-89 / TI-92 Plus
Differences:
None
See Also:
PopupDo (dynamic popups)
Example:
#include "mpopup.h"
WORD select;
if (MID_CORRECT == (select = MenuPopup( &mPopupTest, -1, -1, 3 )))
Disp("CORRECT");
// MPOPUP.R
POPUP mPopupTest, 0, 0
{
"POPUP 1", MID_1
"POPUP 2", MID_2
"SELECT THIS", MID_CORRECT
}
TI-89 / TI-92 Plus Developer Guide
Appendix A: System Routines — Menus
— Pointer to a MENU structure of a POPUP as defined by
the resource compiler.
— Screen coordinates of the upper left corner of the
menu. If x0 is equal to L1 then the pop-up is centered
horizontally, if y0 is equal to L1 then the pop-up is
centered vertically.
— Menu ID of initially selected item (0 defaults to first
item).
— Nothing selected (N pressed) or not enough memory
to display pop-up.
— Menu ID of item selected.
Not for Distribution
Beta Version January 26, 2001

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-92 plus

Table of Contents