Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Attach a Run to a Dialogue Button
#5
Your dialog needs to be a smart dialog.

the error message shows you how to fix it. The dialog must have a Dialogue Procedure. In qm output it gives you a sample code to fix the issue..
Sample ShowDialog code and dialog procedure:
if(!ShowDialog(dd &sub.DlgProc 0)) ret


#sub DlgProc
function# hDlg message wParam lParam

sel message
    case WM_INITDIALOG
    case WM_DESTROY
    case WM_COMMAND goto messages2
ret
 messages2
sel wParam
    case IDOK
    case IDCANCEL
ret 1
 close dialog editor
find this line in 

if(!ShowDialog(dd 0 0)) ret

replace with sample code

then reopen dialog editor and follow instructions given above.

or can re make the dialog as a smart dialog.


Messages In This Thread
Attach a Run to a Dialogue Button - by flycaster - 04-17-2021, 10:04 AM
RE: Attach a Run to a Dialogue Button - by Kevin - 04-18-2021, 03:31 AM
RE: Attach a Run to a Dialogue Button - by Kevin - 04-23-2021, 03:42 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)