Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Smart Dialog HELP!!!
#2
You don't need a smart dialog if the code will be executed after closing the dialog.

Create simple dialog, add checkboxes, click Apply and Close. It creates new function that contains dialog definition. Lets say the function is named "Dialog39". Example:

Code:
Copy      Help
;\Dialog_Editor

;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 223 135 "Dialog"
;1 Button 0x54030001 0x4 120 116 48 14 "OK"
;2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
;3 Button 0x54012003 0x0 18 34 48 12 "one"
;4 Button 0x54012003 0x0 20 56 48 12 "two"
;5 Button 0x54012003 0x0 16 78 48 12 "three"
;END DIALOG
;DIALOG EDITOR: "" 0x2020100 "" ""

Then open the macro that will show the dialog. Copy dialog code from output and paste in the macro:

Code:
Copy      Help
str controls = "3 4 5"
str c3one c4two c5thr
if(!ShowDialog("Dialog39" 0 &controls)) ret

When the dialog will be closed using Cancel or X, the macro will end. When OK, it will continue. The variables will be 1 if checked, 0 if unchecked. Use if:

Code:
Copy      Help
if(c3one=1)
,out "one checked"
if(c4two=1)
,out "two checked"
if(c5thr=1)
,out "three checked"


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)