To save me reinventing the wheel, has anybody written routines to act
on mouseclicks inside irregularly-shaped "buttons"?

Techniques I'm considering:

++ Detecting if a point is inside an arbitrary polygon

++ Unions and differences of rectangles, triangles and sectors

++ Color of the pixel under the cursor

If it works on a simple map of the USA, it'll probably work for my purpose.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to