08-08-2023, 01:16 PM
(08-08-2023, 12:25 PM)bplus Wrote: @justsomeguy or @mdijkensNo creating the image in a picture editor and 'color' the click-regions is of course done during design. I then incorporate the 'click-image' in the source-code.
As I said this is interesting but for clarification: This is all done at run time that you run the graphic in a picture editor and create colored areas then find what color the mouse is on?
It must be to handle moving boxes I would think?
To me, this is way more complicated than running a couple If Then lines on boundaries. Move the x,y top right box corner, no problem!
I do see the advantage of being able to get the odd shapes left for rectangles being overlapped.
And you are right, this only makes sense if you have a lot of different click-areas with odd shapes and maybe even overlapping. For just a few square/circle-shape click-regions you're easier off using some conditions checking _mousex and _mousey
45y and 2M lines of MBASIC>BASICA>QBASIC>QBX>QB64 experience