Specifications For User Defined Dialogs: Manual With Examples V 1.5
Specifications For User Defined Dialogs: Manual With Examples V 1.5
Specifications For User Defined Dialogs: Manual With Examples V 1.5
This description is a summary of all dialogue elements you have at your disposal in a user-
defined dialogue. In addition, at the end of the description, you will find a detailed example
for a user-defined dialogue. …
PosY
PosX
3 Creation of the file
[Field#001] The volumes of the field sections depend on the used dialogue
elements.
•••
[Field#XXX
]
The layout of a user-defined dialogue is stored in an UDL file. The following dialogue
elements are possible for the variable dialogue.
Example
[Field#1] Output: none
Inputtype=1
Name=Variable Name
PosX=0
PosY=0
3.1.3 Check Box
Example:
[Field#1]:
Inputtype=2
Name=Variable name
Select=0
PosX=0
PosY=0
VarName=Varcheck
3.1.4 Radion Buttons
Select Default value (If the value is 1 the radio Number 0/1
button is selected)
Radiobuttons that depend on one another must have one on the other following "Field-
Numbers". One group of radiobuttons is restricted by a dialogue element of an another type.
This is not nescessary if there is only one group of radiobuttons in the dialogue.
Example
[Field#1] You see the output of the
dialogue elements in two
Inputtype=3
variables.
Name=Variable Var1
Select=1
Var1 = 1 0
PosX=0
PosY=0 or
VarName=Var1 Var2 = 0 1
[Field#2]
Inputtype=3
Name=Variable Var2
Select=0
PosX=0
PosY=0
VarName=Va2
3.1.5 Call of Subdialogs
PosY=0 •
•
•
[Geo_FieldXXX]
[SubDlgGeo_Main]
•
•
•
[SubDlgGeo_ FieldXXX]
3.1.6 Space
Example
[Field#1]
Inputtype=5
High=20
[Field#2]
Inputtype=7
Name=Var2
Select=0
PosX=0
PosY=0
Value=Chk_2
VarName=VarChk
[Field#3]
Inputtype=7
Name=Var3
Select=0
PosX=0
PosY=0
Value=Chk_3
VarName=VarChk
3.1.9 Radio Buttons with Special Output
[Field#2]
Inputtype=8
Name= Var2
Select=0
PosX=0
PosY=0
Value= Rdo_2
VarName=VarRdo
[Field#3]
Inputtype=8
Name= Var3
Select=0
PosX=0
PosY=0
Value= Rdo_3
VarName=VarRdo
3.1.10 List Box
TextAndVar#X Text of the list entry and the value Text 254
that should write in the output file.
The first value is the text of the list
entry. The second value is the
value for the output file. A comma
detaches the values.
If you copy a picture to the button, the background colour of the picture changes if it
appears on the button. This means that all pixels with the colour of the outermost
pixel in the left upper corner of the picture will be automatically replaced through a
grey colour, according to Windows conventions (colour of the button).
Example:
If you want to have a red background on your button picture, you have to take care
that also at your bitmap, the outermost pixel above left is not red as well. If so, when
copying on the button, all red pixels would become grey.
But, if this pixel is e.g. blue, after copying on the button, only the blue pixel will
become grey. The red pixels stay red and they have a red background.
IniSekt Section of the Ini file (If „“ then Ini section from call) Text 254
[Field#1] [Field#3]
Inputtype=10 Inputtype=10
SelectBmp=..\Layout\Dog.bmp Select=0
DisSelectBmp=..\Layout\Dog_No.bmp SelectBmp=..\Layout\Fish.bmp
Select=1 DisSelectBmp=..\Layout\Fish_No.bmp
PosX=10 PosX=230
PosY=10 PosY=10
Width=100 Width=100
Height=100 Height=100
Value=Dog Value=Fish
VarName=Animal VarName=Animal
[Field#2] [Field#4]
Inputtype=10 Inputtype=10
Select=0 Select=0
SelectBmp=..\Layout\Cat.bmp SelectBmp=..\Layout\Bird.bmp
DisSelectBmp=..\Layout\Cat_No.bmp DisSelectBmp=..\Layout\Bird_No.bmp
PosX=120 PosX=340
PosY=10 PosY=10
Width=100 Width=100
Height=100 Height=100
Value=Cat Value=Bird
VarName=Animal VarName=Animal
IniSekt Section of the Ini file (If „“ then Ini section from call) Text 254
[Field#1] [Field#3]
Inputtype=11 Inputtype=11
Select=1 Select=0
SelectBmp=..\Layout\Dog.bmp SelectBmp=..\Layout\Fish.bmp
DisSelectBmp=..\Layout\Dog_No.bmp DisSelectBmp=..\Layout\Fish_No.bmp
PosX=10 PosX=230
PosY=10 PosY=10
Width=100 Width=100
Height=100 Height=100
SelValue=Dog SelValue=Fish
CatOrDog=Animal VarName=Animal
[Field#2] [Field#4]
Inputtype=11 Inputtype=11
Select=0 Select=0
SelectBmp=..\Layout\Cat.bmp SelectBmp=..\Layout\Bird.bmp
DisSelectBmp=..\Layout\Cat_No.bmp DisSelectBmp=..\Layout\Bird_No.bmp
PosX=120 PosX=340
PosY=10 PosY=10
Width=100 Width=100
Height=100 Height=100
SelValue=Cat SelValue=Bird
VarName=Animal VarName=Animal
Description:
In this example, for each button a value will be written in the output file. For this, you
only have to input a value for the DisValue parameter.
[Field#1] [Field#3]
Inputtype=11 Inputtype=11
Select=1 Select=0
SelectBmp=..\Layout\Dog.bmp SelectBmp=..\Layout\Fish.bmp
DisSelectBmp=..\Layout\Dog_No.bmp DisSelectBmp=..\Layout\Fish_No.bmp
PosX=10 PosX=230
PosY=10 PosY=10
Width=100 Width=100
Height=100 Height=100
SelValue=Yes SelValue=Yes
DisValue=No DisValue=No
VarName=Dog VarName=Fish
[Field#2] [Field#4]
Inputtype=11 Inputtype=11
Select=0 Select=0
SelectBmp=..\Layout\Cat.bmp SelectBmp=..\Layout\Bird.bmp
DisSelectBmp=..\Layout\Cat_No.bmp DisSelectBmp=..\Layout\Bird_No.bmp
PosX=120 PosX=340
PosY=10 PosY=10
Width=100 Width=100
Height=100 Height=100
SelValue=Yes SelValue=Yes
DisValue=No DisValue=No
VarName=Cat VarName=Bird
Output in the INI file:
Dog=No
Cat=No
Fish=Yes
Bird=Yes
Application example 3
Description: In this example, a change-over switch is realized with the Check Picture
Button. If you actuate the respective button, you can change between the dog and the
cat, as well as the fish and the bird.
Output 1
Output 2
[Field#1] Output 1 in the INI file:
Inputtype=11
Select=1 CatOrDog=Cat
SelectBmp=..\Layout\Dog.bmp FishOrBird=Bird
DisSelectBmp=..\Layout\Cat.bmp
PosX=10
PosY=10
Width=100 Output 1 in the INI file:
Height=100
SelValue=Dog
DisValue=Cat CarOrDog=Dog
VarName=CatOrDog FishOrBird=Fish
[Field#2]
Inputtype=11
Select=0
SelectBmp=..\Layout\Fish.bmp
DisSelectBmp=..\Layout\Bird.bmp
PosX=120
PosY=10
Width=100
Height=100
SelValue=Fish
DisValue=Bird
VarName=FishOrBird
Creation of the file
Example
[Field#1] The output of the list box takes
place in one variable.
Inputtype=9
Name= Variable Name
In this example.
Select=1
VarList= List_3
ShowStrLen=12
PosX=10
PosY=280
BoxPosX=120
BoxPosY=280
NoOfElms=10
VarName=VarList
TextAndVar#1 =Listeneintrag_0, List_1
TextAndVar#2 =Listeneintrag_1, List _2
TextAndVar#3 =Listeneintrag_2, List _3
TextAndVar#4 =Listeneintrag_3, List _4
TextAndVar#5 =Listeneintrag_4, List _5
TextAndVar#6 =Listeneintrag_5, List _6
TextAndVar#7 =Listeneintrag_6, List _7
TextAndVar#8 =Listeneintrag_7, List _8
TextAndVar#9 =Listeneintrag_8, List _9
TextAndVar#10 =Listeneintrag_9, List _10
19.08.02 v 1.5 31
Creation of the file
Example: [Field#1]
Inputtype=0
Name=Variable Name
Length=31
Text=@[Name of the string variable out of GEOPAK]
Or
32 v 1.5 19.08.02
Creation of the file
For the check boxes and the option buttons, the valid return codes are True
and False or 1 and 0. For the check boxes and the option buttons with
special tasks, the value having been registered under “Value” must be
returned by GEOPAK so that the check boxes or the option button must be
set
[Field#2]
Inputtype=7
Name=Var2
Select=@[ VarIni]
PosX=0
PosY=0
Value=Ini2
VarName=VarIni
For the list field, you only have to return the number of the list input.
19.08.02 v 1.5 33
Example for a user defined file
2
0
3
20
40
60
80
4
100
120
5 140
160
180
0 20 40 60 80 100 120 140 160 180 200 220 240 260 280
(Pixel )
In this example (picture above) you operate with the following dialogue
items: Text input, display text, check boxes and radio buttons.
34 v 1.5 19.08.02
Example for a user defined file
2 Text field
[Geo_Field#1]
Inputtype=1
Name=Co-ordinate system
PosX=10
PosY=10
3 Radio buttons
With these two radio buttons the variable AlignMode is input.
[Geo_Field#2]
Inputtype=8
Name=Manual alignment
Select=0
PosX=20
PosY=30
VarName=AlignMode
Value=1
[Geo_Field#3]
Inputtype=8
Name=Load co-ordinate system
Select=1
PosX=20
PosY=50
VarName=AlignMode
19.08.02 v 1.5 35
Example for a user defined file
Value=2
4 Text input
[Geo_Field#4]
Inputtype=0
Name=Co-ordinate sys. no.
Length=12
Text=1
ShowStrLen=4
PosX=40
PosY=70
BoxPosX=220
BoxPosY=70
VarName=CosyNo
5 Check boxes
Check boxes are used, if the value of variables is to take only the
value 1
or 0.
[Geo_Field#6]
Inputtype=2
Name=Meas. results to printer
Select=1
PosX=20
PosY=120
VarName=fPrint
[Geo_Field#7]
Inputtype=2
Name=Meas. results to file
Select=0
PosX=20
PosY=140
VarName=fFile
36 v 1.5 19.08.02
Example for a user defined file
[Geo_Main]
Name=Input variables for GEOPAK-Win (Example #1)
NoOfFields=7
Help=0
PosX=0
PosY=0
LastValue=2
[Geo_Field#1]
Inputtype=1 [Geo_Field#3]
Name=Co-ordinate system Inputtype=8
PosX=10 Name=Load co-ordinate system
PosY=10 Select=1
PosX=20
[Geo_Field#2] PosY=50
Inputtype=8 VarName=AlignMode
Name=Manual alignment Value=2
Select=0
PosX=20 [Geo_Field#4]
PosY=30 Inputtype=0
VarName=AlignMode Name=Co-ordinate sys. no.
Value=1 Length=12
19.08.02 v 1.5 37
Example for a user defined file
Text=1 Inputtype=2
ShowStrLen=4 Name=Meas. results to printer
PosX=40 Select=1
PosY=70 PosX=20
BoxPosX=220 PosY=120
BoxPosY=70 VarName=fPrint
VarName=CosyNo
[Geo_Field#7]
[Geo_Field#5] Inputtype=2
Inputtype=1 Name=Meas. results to file
Name=Output Select=0
PosX=10 PosX=20
PosY=100 PosY=140
VarName=fFile
[Geo_Field#6]
38 v 1.5 19.08.02
Example for a user defined file
[GeoSel_Main]
Name=Input variables for GEOPAK-Win (Example #2)
NoOfFields=4
Help=0
PosX=150
PosY=50
[GeoSel_Field#1] Inputtype=8
Inputtype=1 Name=Only 16 circles
Name=Kind of measurement Select=1
PosX=10 PosX=20
PosY=0 PosY=0
VarName=MeasureKind
[GeoSel_Field#2] Value=2
Inputtype=8
Name=Measure whole program [GeoSel_Field#4]
Select=0 Inputtype=8
PosX=20 Name=Only 4 circles
PosY=0 Select=0
VarName=MeasureKind PosX=20
Value=1 PosY=0
VarName=MeasureKind
[GeoSel_Field#3] Value=3
19.08.02 v 1.5 39
Example for a user defined file
[StartAsk_Main]
Name=Input variables for GEOPAK-Win (Example #3)
NoOfFields=3
Help=0
PosX=150
PosY=50
[StartAsk_Field#1] BoxPosX=220
Inputtype=1 BoxPosY=60
Name=Abfrage Stamm- und VarName=StammNr
Auftrags-Nr.
PosX=10 [StartAsk_Field#3]
PosY=20 Inputtype=6
Name=Auftragsnummer
[StartAsk_Field#2]
Length=12
Inputtype=6
Fix=0
Name=Stammnummer
DefaultVal=0000
Length=12
Max=999999
Fix=0
Min=0
DefaultVal=0000
ShowStrLen=8
Max=999999
PosX=40
Min=0
PosY=80
ShowStrLen=8
BoxPosX=220
PosX=40
BoxPosY=80
PosY=60
VarName=AuftragsNr
40 v 1.5 19.08.02
Example for a user defined file
[String_Main]
Name=Input text variables for GEOPAK-Win
NoOfFields=2
Help=0
PosX=0
PosY=0
[String_Field#1] [String_Field#2]
Inputtype=0 Inputtype=0
Name=InpStr1: Name=InpStr2:
Text=@Operator Text=@PartProgName
Length=80 Length=80
ShowStrLen=20 ShowStrLen=20
VarName=InpStr1 VarName=InpStr2
19.08.02 v 1.5 41