
GeoBASIC User Manual
8
—
Typical
GeoBASIC Programming
TPS1100-Version 2.10
8-7
•
for specifying which button is to add in
MMI_AddButton
, and
•
checking what button was pressed or that is returned from a system function.
Example:
We add the F1-button to the currently opened dialog, giving the meaning "
CONT
"
to it.
MMI_AddButton( MMI_F1_KEY, "CONT" )
Note
The button id's are defined as constants in the compiler.
8.2.7
Responding to buttons
There are two procedures for coping with button presses:
•
MMI_CheckButton
queries whether there was a button pressed or not, and
•
MMI_GetButton
retrieves a pressed button. If there was no button pressed
it waits until one is pressed. The second parameter to
MMI_GetButton
(the
in-parameter
bAllKey
) determines what buttons are accepted:
−
If it is
TRUE
, any button is accepted.
−
If it is
FALSE
, only ESC, or a defined button (added with
MMI_AddButton
) are accepted.
Содержание tps1100
Страница 1: ...GeoBASIC FOR TPS1100 User Manual Version 2 10 1997 2001 Leica Geosystems AG Heerbrugg Switzerland ...
Страница 150: ...GeoBASIC FOR TPS1100 Reference Manual Version 2 10 1997 2001 Leica Geosystems AG Heerbrugg Switzerland ...
Страница 411: ...GeoBASIC Reference Manual 6 System Functions TPS1100 Version 1 30 6 7 6 5 35 CSV_LibCallAvailable 6 213 ...
Страница 620: ...TPS1100 Version 2 10 6 1 ...
Страница 621: ......
Страница 623: ...TPS1100 Version 2 10 6 1 ...
Страница 624: ......
Страница 1053: ...TPS1100 Version 1 30 E 1 Appendix E GEOFONT ...
Страница 1154: ...GeoBASIC Reference Manual Appendix J List of Predefined Identifiers TPS1100 Version 1 30 J 9 TMC_SetOffsetDist 6 128 ...