11-07-2013, 01:40 PM
Function Macro21
Function Dialog2
seems work
1. is code correct?
2. Can I assign the dialog a name at runtime to have multiple dialogs running from different macros?
mac "Dialog2"
int w=wait(30 WV win("Macro en cours" "#32770"))
for _i 0 10
,_s=_i
,_s.setwintext(id(3 w))
,0.5
clo w
Function Dialog2
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
if(!ShowDialog("Dialog2" &Dialog2)) ret
;BEGIN DIALOG
;0 "" 0x10C00AC8 0x0 0 0 224 131 "Macro en cours"
;3 Static 0x54000001 0x8000000 88 22 48 10 "Text"
;END DIALOG
;DIALOG EDITOR: "" 0x2030605 "" "" "" ""
ret
;messages
sel message
,case WM_LBUTTONDBLCLK
,DT_Cancel hDlg
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1
seems work
1. is code correct?
2. Can I assign the dialog a name at runtime to have multiple dialogs running from different macros?