MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Event when clicking one of many Disks in a Pane

Can someone help me figure out how to use EventHandler
to evaluate an expression when one of many Disk[]
objects in a Graphics Pane is clicked.

For example suppose I create a red and green disk in a

Graphics[{Red, Disk[{1, 1}, 0.5], Green, Disk[{2, 2},

Each disk is a separate and editable object in the
graphics pane. Can I therefore associate an Event with
a Mouseclick on each disk? To make matters simple lets
say the disk change color from Red to Yellow and Green
to Brown.

Robert Prince-Wright
TX, 77006

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

  • Prev by Date: Re: pdf and accents
  • Next by Date: Re: Frametick Orientation (2 Questions)
  • Previous by thread: Re: Directory of Mathematica Add-Ons
  • Next by thread: RE: Event when clicking one of many Disks in a Pane