Marcel Kilgus writes:
John Gilpin wrote:
Having changed window sizes (and other parameters) in my program, I have
written a procedure to reset all the devices/parameters etc to their
default settings before returning. I have most of the other defaults but
not the three windows #0, #1 and #2. Is this information recorded
anywhere? If so, where?
Just use the WMON command, it will do everything for you.
As usual, Marcel is spot on ;o)
However, (on larger screens under SMSQ/E) I prefer to have my main
console window on the right hand side of the screen, as the older
programs tend to pile up on the left covering the command console.
Normally, I also want to leave some space for the Button Frame on top.
Therefore Ive set up two hotkeys on 'B' and 'b' which put the console
where I want it. (The listings below should be concatenated with
colons to put them on a hotkey.)
Incidentally, this also answers your question ;o)
Set windows top right, leaving room for BF:
OUTLN#0,512,242,SCR_XLIM-512,14
WINDOW#0;512,62,SCR_XLIM-512,194:BORDER#0;1,255
WINDOW#1;256,178,SCR_XLIM-256,14:BORDER#1;1,255
WINDOW#2,256,178,SCR_XLIM-512,14:BORDER#2;1,255
CLS#0:CLS#1:CLS#2
Reset windows, but place them top right:
OUTLN#0,512,256,SCR_XLIM-512,0
WINDOW#0;512,52,SCR_XLIM-512,204:PAPER#0;0:INK#0;4:BORDER#0;1,255:CLS#0
WINDOW 256,202,SCR_XLIM-256,0:PAPER 2:INK 7:BORDER 1,255:CLS
WINDOW#2,256,202,SCR_XLIM-512,0:PAPER#2;7:INK#2;2:BORDER#2;1,255:CLS#2
Per
_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm