Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Setting a default value in a dialog box
#2
Assign "1" to the variable. Example:

Code:
Copy      Help
\Dialog_Editor

str controls = "3 4 5 6"
str c3Che o4Opt o5Opt o6Opt

c3Che=1
o4Opt=1

if(!ShowDialog("" 0 &controls)) ret

if(c3Che=1) out "checkbox checked"
if(o4Opt=1) out "option 1 checked"
else if(o5Opt=1) out "option 2 checked"
else if(o6Opt=1) out "option 3 checked"

;BEGIN DIALOG
;0 "" 0x10C80A44 0x100 0 0 223 135 "Form"
;1 Button 0x54030001 0x4 120 116 48 14 "OK"
;2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
;3 Button 0x54012003 0x0 8 8 48 12 "Check"
;4 Button 0x54032009 0x0 8 40 48 12 "Option 1"
;5 Button 0x54002009 0x0 8 52 48 13 "Option 2"
;6 Button 0x54002009 0x0 8 64 48 12 "Option 3"
;END DIALOG
;DIALOG EDITOR: "" 0x2010800 "" ""


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)