Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make a simple dialog box for an existing script?
#2
Create new dialog. Then add the ShowDialog code from QM output to the macro. Use the variables in the macro.

Function Dialog123
Code:
Copy      Help
;\Dialog_Editor


;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 223 135 "Dialog"
;3 Static 0x54000000 0x0 4 6 28 12 "Path"
;4 Edit 0x54030080 0x200 34 4 186 14 "Path"
;5 Static 0x54000000 0x0 4 24 28 12 "Format"
;6 Edit 0x54030080 0x200 34 22 38 14 "Format"
;1 Button 0x54030001 0x4 120 116 48 14 "OK"
;2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2030502 "" "" "" ""
Macro Macro2001
Code:
Copy      Help
str controls = "4 6"
str e4Pat e6For
if(!ShowDialog("Dialog123" 0 &controls)) ret

int i
ARRAY(str) a
GetFilesInFolder a e4Pat ""
;...


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)