is there a way besides using "curtain" to paint an image (like a logo) somewhere on the screen? I'd like it to stay visible and in front while certain conditions are true while allowing my browser window to still be active and enabled. Is that possible?
Craig
There ought to be a law that limits the number of laws!
ret ;messages sel message ,case WM_INITDIALOG ,DT_Init(hDlg lParam) ;;not necessary in QM >= 2.1.9 ,case WM_DESTROY DT_DeleteData(hDlg) ;;not necessary in QM >= 2.1.9 ret
Thanks, I'm a little confused as to its execution - I don't seem to be able to run it from the command dialog_logo 0 0 0 0 - I get the following error message:
Error (RT) in dialog_logo: cannot create dialog. Dialog definition not found or is invalid. First argument of ShowDialog must be name of macro or function that contains dialog definition (text that begins with BEGIN DIALOG)
If I change the first parameter to "1", the error message goes away, but nothing happens that I can discern. Should I separate this into two different files in the same way that Curtain runs Curtain_dialog ?
I unfortunately don't use dialogs often enough to imprint their usage in my brain...
Thanks, Craig
There ought to be a law that limits the number of laws!
In older QM versions, ShowDialog would fail if dialog definition begins with ; (not spaces). To paste code from forum, use menu Edit -> Other formats -> Paste escaped. It replaces ; to spaces, and , to tabs.
I just got back to this project and still cannot run dialog_logo through either of those to means. The problem seems within the 8th line of the function as the cursor is left there:
again the error is:
Error (RT) in dialog_logo: cannot create dialog. Dialog definition not found or is invalid.
First argument of ShowDialog must be name of macro or function that contains dialog definition (text that begins with BEGIN DIALOG)
I'm using QM2.1.9.
Thanks, Craig
There ought to be a law that limits the number of laws!
ret ;messages sel message ,case WM_INITDIALOG ,DT_Init(hDlg lParam) ;;not necessary in QM >= 2.1.9 ,case WM_DESTROY DT_DeleteData(hDlg) ;;not necessary in QM >= 2.1.9 ret
Expand folder System\Dialogs\Dialog Functions\private.
In dialog_logo, before ShowDialog line, insert Deb.
Run dialog_logo (or macro that calls it). At Deb it stops.
Press F5 repeatedly.
What is the last executed line in function CompileDialog?
perhaps this highlights something I've done wrong...Are you saying that I should have placed the dialog_logo function into this system folder in order to work?
There ought to be a law that limits the number of laws!
Blank lines are not necessary. Maybe copied code contains invalid newline characters, or invalid space characters. Try the attachment. It cannot be corrupted.
if(findrx(dd "(?s)^[ ;]*BEGIN DIALOG *[](.+?)[][ ;]*END DIALOG$" 0 8 si 1)<0) ret
failed at red $. It should be
if(findrx(dd "(?s)^[ ;]*BEGIN DIALOG *[](.+?)[][ ;]*END DIALOG *$" 0 8 si 1)<0) ret
Normally, code inserted by Dialog Editor does not contain spaces in end of lines, but spaces can be added in code copied from forum. Will be fixed in next release, thank you.
Thank You, too. I cannot make this logo appear over a section just in the middle of the screen. Is that to be expected? If I move it, the curtain window hides everything from the lower right corner up to the logo. Is there a setting that places my 50x50 pixel bitmap logo in a designated central area (say x=400, y=300) without graying out the lower right quadrant?
Thanks!
Craig
There ought to be a law that limits the number of laws!