Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BlockInput2 behaviour with dialog active
#1
I have noticed that mouse can move - but not clicked - when function tempf02 runs :

Function tempf02
Code:
Copy      Help
mac "tempf03"
BlockInput2 3
10
BlockInput2 0

Function tempf03
Code:
Copy      Help
if(!ShowDialog("dialog_with_progres_Clepsy" &dialog_with_progres_Clepsy 0)) ret

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

def PBM_SETRANGE (WM_USER+1)
def PBM_SETPOS (WM_USER+2)
def PBM_DELTAPOS (WM_USER+3)

;BEGIN DIALOG
;0 "" 0x90000844 0x8 0 0 44 15 ""
;3 msctls_progress32 0x54000008 0x4 2 2 40 12 ""
;END DIALOG
;DIALOG EDITOR: "" 0x2040308 "" "" "" ""

ret
;messages
;you can change these values
int step=1
int timerperiod=250 ;;should be >=50 (in msec)

int hpb=id(3 hDlg)
str s

sel message
,case WM_INITDIALOG
,DT_Init(hDlg lParam)

,SetTimer hDlg 1 timerperiod 0
,ret 1
,
,case WM_TIMER
,SendMessage hpb PBM_SETPOS 0 0
,
,case WM_DESTROY DT_DeleteData(hDlg)
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK DT_Ok hDlg
,case IDCANCEL DT_Cancel hDlg
ret 1

I cannot explain why. Let me mention that if tempf03 is started and then tempf02 run (without the mac statement) then mouse stands still. I wonder whether there is something wrong with dialog_with_progres_Clepsy.
Any help will be much appreciated.
#2
Quote:Does not block in macro windows (mes, inp, custom dialogs, etc). If flag 2 used, does not block only in windows of current thread.

BlockInput2 3 0 2


Forum Jump:


Users browsing this thread: 1 Guest(s)