
GeoBASIC User Manual
8
—
Typical
GeoBASIC Programming
TPS1100-Version 2.10
8-5
•
List: Lists take a variable of a predefined type as parameter.
TYPE ListArray (25) AS String30 END
This definition determines the maximum number of entries in a list to be 25,
each one is a string of type String30. We create a list with 4 items and use the
second entry as default (initial selection).
DIM aList
AS ListArray
DIM iIndex
AS Integer
aList(1) = “List Item 1”
aList(2) = “List Item 2”
aList(3) = “List Item 3”
aList(4) = “List Item 4”
iIndex = 2
MMI_InputList(8, 4, 12, 4, MMI_DEFAULT_MODE, aList,
iIndex,
lValid, iButtonId)
Parameters: column, line, iLen, number of items, mode, list variable,
index, lValid, button
8.2
THE GRAPHICS DIALOG
8.2.1
Positioning on the display
Every graphics function needs the position on the display. The graphics display is
organized in x- (horizontal) and y-pixels (vertical). The left upper position has x-
pixel and y-pixel number 0. The x-pixel number is rising to the right and the y-
pixel number is rising down. The size of the display is 232 times 48 pixels.
8.2.2
Creating a graphics dialog
Calling MMI_CreateGraphDialog creates a new graphics dialog.
MMI_CreateGraphDialog("BASIC", "Graphics Dialog",
"My help text.")
A graphics dialog with short caption "BASIC" and caption "Graphics Dialog" is
created. The help text is set to "
My help text.
" — it is shown when the user
presses Shift-F1 and the help functionality of the theodolite is enabled.
Содержание 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 ...