12-14-2008, 10:37 PM
what i think is happening you have renamed the 2 default buttons which as a result on pressign them closes dialog
so heres one where i have made 2 new buttons which wont close your dialog
Function Dialog2
so heres one where i have made 2 new buttons which wont close your dialog
Function Dialog2
;\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
if(!ShowDialog("Dialog2" &Dialog2)) ret
;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 0x54032000 0x0 8 22 48 14 "Start"
;4 Button 0x54032000 0x0 60 22 48 14 "Stop"
;END DIALOG
;DIALOG EDITOR: "" 0x2030002 "" "" ""
ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case 3
,mac "macro1"
,case 4
,shutdown -6 0 "macro1"
,case IDOK
,case IDCANCEL
ret 1