La siguiente tabla
muestra como cada tipo de control mapea a la estructura de datos de plantilla:
Control Type |
Template Format |
Value Description |
Get Value:
Screen -> String |
Put Value:
String -> Screen |
Push Button (11) |
C(1*=0) |
N/A |
N/A |
N/A |
Radio Button (12) |
N(1*=0) |
0=unchecked 1=checked |
dec(ctrl(gb__sysgui, gb__ctl_id,2)) |
‘CHECK’ |
Check Box (13) |
N(1*=0) |
0=unchecked 1=checked |
dec(ctrl(gb__sysgui, gb__ctl_id,2)) |
‘CHECK’ or ‘UNCHECK’ |
Horizontal Scrollbar (14) |
N(4*=0) |
scrollbar position based on the ‘scrollrange’ |
dec(ctrl(gb__sysgui, gb__ctl_id,2)) |
‘SCROLLPOS’(gb__ctl_id,int) |
Vertical Scrollbar (15) |
N(4*=0) |
scrollbar position based on the ‘scrollrange’ |
dec(ctrl(gb__sysgui, gb__ctl_id,2)) |
‘SCROLLPOS’(gb__ctl_id,int) |
Edit (16) |
C(64*=0) |
Text value of the control. |
ctrl(gb__sysgui, gb__ctl_id,1) |
‘TITLE’ |
Static Text (17) |
C(64*=0) |
Text value of the control. |
ctrl(gb__sysgui, gb__ctl_id,1) |
‘TITLE’ |
List Box (18) |
C(255*=0) |
Complete list, with ítems delimited by line feeds. |
ctrl(gb__sysgui, gb__ctl_id,7) |
‘LISTSUSPEND’ ‘LISTCLR’ ‘LISTADD’ ’LISTRESUME’ |
List Button (19) |
C(255*=0) |
Complete list, with ítems delimited by line feeds. |
ctrl(gb__sysgui, gb__ctl_id,7) |
‘LISTSUSPEND’ ‘LISTCLR’ ‘LISTADD’ ‘LISTRESUME’ |
List Edit (20) |
C(64*=0) |
Text value of the edit portion of the control. |
ctrl(gb__sysgui, gb__ctl_id,1) |
‘TITLE’ |
Group Box (21) |
C(1*=0) |
N/A |
N/A |
N/A |
Custom Edit (22) |
C(64*=0) |
Text value of the control. |
ctrl(gb__sysgui, gb__ctl_id,7) |
‘TITLE’ |
Menu Ítem (100) |
N(1*=0) |
0=unchecked 1=checked |
dec(ctrl(gb__sysgui, gb__ctl_id,2)) |
‘CHECK’ or ‘UNCHECK’ |
Checkable Menu Ítem (101) |
N(1*=0) |
0=unchecked 1=checked |
dec(ctrl(gb__sysgui, gb__ctl_id,2)) |
‘CHECK’ or ‘UNCHECK’ |
Status Bar (102) |
C(64*=0) |
Text value of the control. |
ctrl(gb__sysgui, gb__ctl_id,1) |
‘TITLE’ |
Tool Button (103) |
N(1*=0) |
0=unchecked 1=checked |
dec(ctrl(gb__sysgui, gb__ctl_id,2)) |
‘CHECK’ or ‘UNCHECK’ |
INPUTE (104) |
C(64*=0) |
Text value of the control. |
ctrl(gb__sysgui, gb__ctl_id,1) |
‘TITLE’ |
INPUTN (105) |
C(16*=0) |
Text value of the control (use NUM() to convert to numeric). |
ctrl(gb__sysgui, gb__ctl_id,1) |
‘TITLE’ |
Tab (106) |
N(4*=0) |
Currently selected tab index. |
dec(sendmsg (gb__sysgui, gb__ctl_id,29,0,$$)) |
sendmsg(gb__sysgui, gb__ctl_id,34,0,$$) |
Grid (107) |
C(1*=0) |
N/A |
N/A |
N/A |
Line (108) |
C(1*=0) |
N/A |
N/A |
N/A |
Image (109) |
C(1*=0) |
N/A |
N/A |
N/A |