The BASIC windows always start top left in a high resolution display, the assumption being that you only want QL-sized windows for BASIC, leaving the rest of the screen free for other programs.vanpeebles wrote:I've managed to get it working using smsq, although with a small window top left. Which from reading the manual, I need to adjust some window# values.
That said, you can move them around with WMON and WTV commands in SMSQ/E:
Code: Select all
WMON ,x,y
Code: Select all
WTV ,x,y
If you want to make the windows fill the screen, you can use the SCR_XLIM and SCR_YLIM functions to establish the size:
Code: Select all
wide=SCR_XLIM
high=SCR_YLIM
WINDOW #1,wide,high,0,0
Here's a couple of simple BASIC procedures which set the TV (XTV command) and Monitor (XMON command) to fill the video screen. I always have these tagged onto the end of my programs when using BASIC so I can quickly reset the windows:
Code: Select all
29800 DEFine PROCedure XTV
29810 OUTLN #0,SCR_XLIM,SCR_YLIM,0,0
29820 WINDOW SCR_XLIM,SCR_YLIM-52,0,0
29830 WINDOW #2,SCR_XLIM,SCR_YLIM-52,0,0
29840 WINDOW #0,SCR_XLIM,52,0,SCR_YLIM-52
29850 BORDER #1,1,255
29860 BORDER #2,1,255
29870 BORDER #0,1,255
29880 CLS : CLS #2 : CLS #0
29890 END DEFine XTV
29900 :
29910 DEFine PROCedure XMON
29920 OUTLN #0,SCR_XLIM,SCR_YLIM,0,0
29930 WINDOW SCR_XLIM/2,SCR_YLIM-54,SCR_XLIM/2,0
29940 WINDOW #2,SCR_XLIM/2,SCR_YLIM-54,0,0
29950 WINDOW #0,SCR_XLIM,52,0,SCR_YLIM-52
29960 BORDER #1,1,255
29970 BORDER #2,1,255
29980 BORDER #0,1,255
29990 CLS : CLS #2 : CLS #0
30000 END DEFine XMON