mouseZone()
Check if mouse pointer is within given rectangle.
Syntax:
variable
= mouseZone(
x
,
y
,
width
,
hight
)
Returns True (1) if mouse intersect area.
Example:
bar(100,100,100+200,100+150)
while not key(k_esc)
if
mouseZone( 100, 100, 200, 150 ) then
ink(rnd(rgb(255,255,255)))
bar(100,100,100+200,100+150)
end if
wend