10-30-2007, 09:09 PM
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:
Then open the macro that will show the dialog. Copy dialog code from output and paste in the macro:
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:
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:
;\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:
str controls = "3 4 5"
str c3one c4two c5thr
if(!ShowDialog("Dialog39" 0 &controls)) retWhen 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:
