How to Set a Default Checkbox in a Winbatch Dialog box
Keywords: dialog editor checkbox
Question:
How do I set a default checkbox in a WinBatch dialog box?
Answer:
To set a default checkbox in a WinBatch dialog just set the variable before you put up the dialog.
areacode=1 ; Sets areacode box to be checked by default
callwait=1 ; Sets callwait dialog box to checked
dial9=1 ; Sets dial9 to 1
remoteFormat=`WWWDLGED,5.0`
remoteCaption=`Check the appropriate box(es).`
remoteX=120
remoteY=90
remoteWidth=200
remoteHeight=72
remoteNumControls=4
remote01=`4,16,204,DEFAULT,CHECKBOX,areacode,"If you are calling from within the &312 area code.",1`
remote02=`4,28,204,DEFAULT,CHECKBOX,callwait,"Disable call &waiting.",1`
remote03=`4,4,204,DEFAULT,CHECKBOX,dial9,"If &9 is needed to access an outside line.",1`
remote04=`65,54,64,DEFAULT,PUSHBUTTON,DEFAULT,"&Done",1`
SendKey("!3{+}")
ButtonPushed=Dialog("remote")
Article ID: W12859
Filename: Set Checkbox as Checked by Default.txt