
GeoBASIC Reference Manual
6. System Functions
TPS1100-Version
2.10
6-26
Example
The example uses the
MMI_GetButton
routine to react to a
pressed button. To make a function key valid for
MMI_GetButton
it must be added to the dialog (with
MMI_AddButton
).
DIM iActionButton
AS Integer
DIM iPressedButton AS Integer
iActionButton = MMI_F2_KEY
MMI_
GetButton ( iPressedButton, TRUE )
IF iPressedButton = iActionButton THEN
'any actions
END IF
6.1.16 MMI_AddButton
Description
Add a button to a dialog.
Declaration
MMI_AddButton( BYVAL iButtonId AS Integer,
BYVAL sCaption
AS _Token )
Remarks
The
routine
MMI_AddButton
adds the button with the Identifier
iButtonId
to the actual dialog and places the text
sCaption
onto the button. These added buttons are valid for the routines
MMI_CheckButton
and
MMI_GetButton
and the input
routines (
MMI_InputStr, MMI_InputVal,
MMI_InputInt
and
MMI_InputList
) which means the
according button identifier can be returned from this routines.
Note
Either a text dialog or a measurement dialog can be
defined at a time. Additionally a graphics dialog can
override one of these above. Then the functionality
applies to the graphics dialog.
The added buttons can be deleted with the routine
MMI_DeleteButton
while the dialog exists. Closing the dialog
with
MMI_DeleteDialog
deletes all buttons attached to this
dialog.
Содержание 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 ...