Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with Dialog
#1
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
#2
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.
#3
the dialog should be open, when i press stop and end the mac.
#4
you need to post your dialog for us to be able to help.
#5
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
Code:
Copy      Help
;\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
#6
tvm craig

that was it.

:wink: :wink:
#7
vn job bro u got to him before i could lol and gl with your file.


Forum Jump:


Users browsing this thread: 1 Guest(s)