I've been working on a graphic vector movement display with full code at:
https://www.qb64.org/forum/index.php?topic=1429.0I set up a display window thus
A& = _NEWIMAGE(1200, 700, 32)
In a later SUB I do this:
_DEST A&
CLS
c = 3 'color variable (local)
'0=black,1=blue,2=green,3=aqua,4=red,5=purple,6=brown,7=white
'8=gray, +8=bright color, except 14=yellow,
COLOR clr&(c) ' color array set up in main module
VIEW (560, 18)-(1180, 638), , clr&(c) ' set graphics port on right side w/box
WINDOW (-1000, 1000)-(1000, -1000) ' set relative cartesian coords
Now any graphics commands go in the box, just as I wanted, but now I would like to set up another window next to it to contain mouse click targets without affecting the existing graphic port. This code was originally from SCREEN 12
I've tried invoking VIEW with new position parameters, and by itself. The former does funny things to the existing port, while the later has no effect and graphic commands still go in the existing port. Obviously, I'm either missing something or what I'm trying to do cannot be done in this mode. I'm not very experienced with graphics work of this magnitude.
Should I rather be just doing a series of _PUTIMAGEs for mouse buttons instead?
Any solutions or insights are appreciated.