The below code runs in a Win95 DOS box without any PIF, so not full screen and with the "char size" listbox set to "Auto". This is what goes on; probably it' s normal, but i want to investigate if i can get it different.
The program sets SCREEN 0 and sleeps 3 secs, then sets SCREEN 9, draws a rectangle, sleeps 3 secs, then starts all over again.
DO
SCREEN 0
PRINT "Now in SCREEN 0"
PRINT "Now sleeping.."
SLEEP 3
SCREEN 9
PRINT "Now in SCREEN 9"
LINE (400,0) - (500,100), 2, BF
PRINT "Now sleeping.."
SLEEP 3
LOOP WHILE INKEY$ = ""
END
If one runs it, will probably see that when the program goes to SCREEN 9 the Win95 DOS box blows to full screen, when the program goes back to SCREEN 0 the Win95 DOS box is reset back to its original window size, and so on.
But, if one clicks outside the window (when it' s a window, i.e. when it' s in SCREEN 0), taking the focus off the window, now on, the SCREEN 9 no longer blows the DOS box to full screen, it just enlarges a little bit the SCREEN 0 window, and it draws the rectangle anyway, correctely (i love this).
Now what i' m trying to know is:
1) Can i get SCREEN 9 to always behave like when it hasn' t the focus (i.e. not blowing to full screen) ? My DOS charts have more appeal when automatically resized by the system.
2) The "new size" of the window (i.e. the size it assumes executing SCREEN 9 without the focus) is under the control of what? I mean, what do determines this size, that is not the same than SCREEN 0 (the original one) ?
Davide Vecchi
[email protected]
The program sets SCREEN 0 and sleeps 3 secs, then sets SCREEN 9, draws a rectangle, sleeps 3 secs, then starts all over again.
DO
SCREEN 0
PRINT "Now in SCREEN 0"
PRINT "Now sleeping.."
SLEEP 3
SCREEN 9
PRINT "Now in SCREEN 9"
LINE (400,0) - (500,100), 2, BF
PRINT "Now sleeping.."
SLEEP 3
LOOP WHILE INKEY$ = ""
END
If one runs it, will probably see that when the program goes to SCREEN 9 the Win95 DOS box blows to full screen, when the program goes back to SCREEN 0 the Win95 DOS box is reset back to its original window size, and so on.
But, if one clicks outside the window (when it' s a window, i.e. when it' s in SCREEN 0), taking the focus off the window, now on, the SCREEN 9 no longer blows the DOS box to full screen, it just enlarges a little bit the SCREEN 0 window, and it draws the rectangle anyway, correctely (i love this).
Now what i' m trying to know is:
1) Can i get SCREEN 9 to always behave like when it hasn' t the focus (i.e. not blowing to full screen) ? My DOS charts have more appeal when automatically resized by the system.
2) The "new size" of the window (i.e. the size it assumes executing SCREEN 9 without the focus) is under the control of what? I mean, what do determines this size, that is not the same than SCREEN 0 (the original one) ?
Davide Vecchi
[email protected]
Comment