Posts: 6
Threads: 1
Joined: Jan 2008
hi,
i have one question about a dialog,
i have 2 buttonĀ“s start and stop.
so when i press start it runs "macro1"
and when i press stop it should end "macro1" without disapearing the dialog.
can anyone tell me how i do this ???
thx alot
Maxxx
Posts: 57
Threads: 17
Joined: Dec 2008
what do you mean? you want the dialog to close when you hit stop? or you dont want it to close when you hit stop? i can help with a little more info. maybe try posting ur dialog.
Posts: 6
Threads: 1
Joined: Jan 2008
the dialog should be open, when i press stop and end the mac.
Posts: 576
Threads: 97
Joined: Aug 2007
you need to post your dialog for us to be able to help.
Posts: 229
Threads: 22
Joined: Sep 2007
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
;\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
Posts: 6
Threads: 1
Joined: Jan 2008
tvm craig
that was it.
:wink: :wink:
Posts: 57
Threads: 17
Joined: Dec 2008
vn job bro u got to him before i could lol and gl with your file.