
GeoBASIC User Manual
8 — Typical GeoBASIC Programming
8-8 TPS1100-Version
2.10
Example:
The example does some work in a loop until Shift-F6 is pressed. As long as there
is no button pressed, the display is constantly updated (e.g. the current angles from
the theodolite are displayed). If there is a button pressed, this button is handled.
'bDone must be initialized
bDone = FALSE
DO WHILE NOT bDone
'as long as the job is not done
'check for defined buttons and get its id
MMI_GetButton( buttonId, FALSE )
SELECT CASE buttonId
'handle it
CASE MMI_F4_KEY
'handle MMI_F4_KEY
CASE MMI_SHF6_KEY
bDone = TRUE
'that’s it,
'terminate loop
CASE '…
'here go the other handled keys
ELSE
'here go the unhandled keys
END SELECT
'update the display
LOOP
8.2.8
Standard key binding
It is clear that for the user it is important that the same name
2
— and moreover the
same key — always has the same meaning associated (at least conceptually). An
exception is the F1-key, its meaning is not the same in a measurement dialog and
in a configuration dialog. In the following table there are the standard key bindings
with the caption, the text which is displayed above the keys:
Key Caption Action
F1 in measurement
dialog
ALL
Does first DIST, then REC. (See below)
F1 in configuration
dialog
CONT
Continues to the logically following
dialog.
2
For instance, the user of a L
EICA
theodolite assumes that DIST takes the distance
(with the common dialogs), ALL does DIST and then REC, etc.
Содержание 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 ...