Interesting but for a _MouseZone function I would want to see if mouse or mouse click is in a given rectangle.
If zones overlap, what color would that be?
Sure you would have to track which rectangle(s) is(are) on top (with _MouseZone), just like Windows OS has to.
for i = 1 to nRecs
if mx >= rX(i) and mx <= rX(i) + rW(i) then
if my >= rY(i) nd my <= rY(i) + rH(i) then
_mousezone(i) = -1
end if
end if
next
not so hard
If zones overlap, what color would that be?
Sure you would have to track which rectangle(s) is(are) on top (with _MouseZone), just like Windows OS has to.
for i = 1 to nRecs
if mx >= rX(i) and mx <= rX(i) + rW(i) then
if my >= rY(i) nd my <= rY(i) + rH(i) then
_mousezone(i) = -1
end if
end if
next
not so hard
b = b + ...