MathGroup Archive 2008

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

Search the Archive

Event when clicking one of many Disks in a Pane

  • To: mathgroup at smc.vnet.net
  • Subject: [mg87435] Event when clicking one of many Disks in a Pane
  • From: robert prince-wright <robertprincewright at yahoo.com>
  • Date: Thu, 10 Apr 2008 02:15:16 -0400 (EDT)

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
graphic:

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

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
Houston
TX, 77006
USA

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


  • 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