qbasicking
Programmer
Whenever I move a window, it flickers horribly, i feel like it will give a seizure.
DO
mousestatus lb%, rb%, mb%, x%, y%
mouse "update"
IF oldx <> x% OR oldy <> y% THEN
xchg = x% - oldx
ychg = y% - oldy
wx2(1) = wx2(1) + xchg 'moves the coordinates of window
wy2(1) = wy2(1) + ychg 'ditto
PUT (wx(1),wy(1)), back, PSET 'restores old background
wx(1) = wx(1) + xchg
wy(1) = wy(1) + ychg
GET (wx(1),wy(1))-(wx2(1),wy2(1)), back 'gets new one
PUT (wx(1),wy(1)), front, PSET 'puts down most of window
'there are a few LINE,PSET here to finish restoring window
mouse "update"
oldx = x%
oldy = y%
LOOP UNTIL lb% = 0
What I want to know is: Is it possible to write to the screen, but not the monitor.
That's not very clear so here's an example thats along the same lines
OUT 966, 0 'turns off monitor
LINE (10,10)-(40,40), 12, BF 'doesn't show up
OUT 966, 255 ' turns on monitor and reveals a box
I want something like that, but without the monitor going black, but any other help would be greatly appreciated
DO
mousestatus lb%, rb%, mb%, x%, y%
mouse "update"
IF oldx <> x% OR oldy <> y% THEN
xchg = x% - oldx
ychg = y% - oldy
wx2(1) = wx2(1) + xchg 'moves the coordinates of window
wy2(1) = wy2(1) + ychg 'ditto
PUT (wx(1),wy(1)), back, PSET 'restores old background
wx(1) = wx(1) + xchg
wy(1) = wy(1) + ychg
GET (wx(1),wy(1))-(wx2(1),wy2(1)), back 'gets new one
PUT (wx(1),wy(1)), front, PSET 'puts down most of window
'there are a few LINE,PSET here to finish restoring window
mouse "update"
oldx = x%
oldy = y%
LOOP UNTIL lb% = 0
What I want to know is: Is it possible to write to the screen, but not the monitor.
That's not very clear so here's an example thats along the same lines
OUT 966, 0 'turns off monitor
LINE (10,10)-(40,40), 12, BF 'doesn't show up
OUT 966, 255 ' turns on monitor and reveals a box
I want something like that, but without the monitor going black, but any other help would be greatly appreciated