906
Appendix A: System Routines — Menus
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
PopupText
Declaration:
char *
PopupText
(HANDLE
pH
, SINT
PopupId
)
Category(ies):
Menus
Description:
Return a pointer to the text of a dynamically created pop-up.
Inputs:
pH
— HANDLE to a pop-up from
PopupNew
.
PopupId
— Pop-up ID to search for (1 . . . 0xFFF).
Outputs:
Pointer to text (or icon or bitmap).
Assumptions:
Only works for dynamically created popups. For menus, use
MenuItemDef
.
Side Effects:
None
Availability:
All versions of the TI
-
89 / TI
-
92 Plus.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: PopupNew, PopupDo, PopupAddText
Example:
/* Assume hFolderPopup is the handle of a dynamically created pop-up,
buf is a character buffer, opt is a SINT.
*/
if (opt = PopupDo(hFolderPopup,0,0,0)) {
sprintf( buf, "You selected %s", PopupText( hFolderPopup, opt ));
Disp( buf );
}