Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dialog loop
#1
Hi, I am trying to execute a loop when pressing a button in a dialog, but when executing the dialog becomes unresponsive until the loop ends. I don't know if it should work like this or if I am doing something wrong. Here is an example:
Code:
Copy      Help
Macro [b]Macro2[/b] [help1][/help1]
[code]
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 262 120 "Dialog" "4"
;3 Button 0x54032000 0x0 7 4 248 110 "Loop"
;END DIALOG
;DIALOG EDITOR: "" 0x2040B00 "*" "" "" ""

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 3
,int i
,for i 0 10
,,1
,,out i
,case IDOK
,case IDCANCEL
ret 1
[/code]


Messages In This Thread
Dialog loop - by nikks14 - 11-22-2020, 07:07 PM
RE: Dialog loop - by Kevin - 11-22-2020, 08:42 PM
RE: Dialog loop - by nikks14 - 11-23-2020, 12:32 AM
RE: Dialog loop - by Kevin - 11-23-2020, 02:17 AM
RE: Dialog loop - by nikks14 - 11-23-2020, 10:20 AM
RE: Dialog loop - by Kevin - 11-23-2020, 02:14 PM
RE: Dialog loop - by nikks14 - 11-23-2020, 03:03 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)