Posts: 50
Threads: 16
Joined: Oct 2004
In many programs with macro languages, I can hide the activities of what is happening with a screen that says something like, "Please Wait". This makes it so that the user does not see things jumping all over the place. Is it possible to do something like that? It can make things look less "Klugey"
Thanks...Craig
Posts: 175
Threads: 43
Joined: Jun 2004
Could you display a really large dialog with please wait in the middle?
Posts: 12,092
Threads: 142
Joined: Dec 2002
Yes, but mouse commands then cannot be used.
Posts: 50
Threads: 16
Joined: Oct 2004
I haven't had a chance to try this out. But, Gintaras, by specifically referring to mouse commands NOT being available for use, are you implying that keystroke commands COULD continue to be executed even as the dialog box remained on the screen? C
Posts: 12,092
Threads: 142
Joined: Dec 2002
Yes.
Function Curtain:
;\Dialog_Editor
function# [hDlg] [message] [wParam] [lParam]
if(hDlg) goto messages
BlockInput 1
opt waitmsg 2
if(!ShowDialog("Curtain" &Curtain 0 0 1)) ret
;BEGIN DIALOG
;0 "" 0 0x88 0 0 227 154 "Please wait ..."
;END DIALOG
;DIALOG EDITOR: "" 0x2010505 "*" ""
ret
;messages
sel message
,case WM_INITDIALOG
,DT_Init(hDlg lParam)
,SetWindowPos hDlg HWND_TOPMOST 0 0 ScreenWidth ScreenHeight SWP_SHOWWINDOW|SWP_NOACTIVATE
Example macro:
Curtain
rep 5
,key " kkk"
,1