Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple smart dialogs: ending just one
#9
Just remove

,mes "still here? now super forced end"
,end

To see what happens, place Deb before first mes. Before starting, click menu File -> Collapse folders.

Code:
Copy      Help
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages

if(!ShowDialog("another" &another)) ret

;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 85 46 "Dialog"
;4 Button 0x54030000 0x4 8 24 68 14 "Close this one"
;3 Static 0x54000000 0x0 8 10 68 10 "I have been called.."
;END DIALOG
;DIALOG EDITOR: "" 0x2020002 "" ""


ret
;messages
sel message
,case WM_INITDIALOG
,mes "check! now clo hDlg"
,Deb 500
,clo hDlg
,mes "still here? now super forced end"
,;end
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case 4
,mes "I'm going to be closed."
,clo hDlg
,
,case IDOK
,case IDCANCEL
ret 1


Messages In This Thread

Forum Jump:


Users browsing this thread: 7 Guest(s)