MathGroup Archive 2008

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

Search the Archive

EventHandler and Mouse Keys

  • To: mathgroup at smc.vnet.net
  • Subject: [mg94686] EventHandler and Mouse Keys
  • From: "David Park" <djmpark at comcast.net>
  • Date: Sat, 20 Dec 2008 06:21:34 -0500 (EST)

Here is an example adapted from the Help for EventHandler.

 

DynamicModule[

 {col = Green},

 EventHandler[

  Style["text", FontColor -> Dynamic[col]],

  {{"MouseClicked", 1} :> (col = Red),

   {"MouseClicked", 2} :> (col = Green)}]

 ]

 

This works except that when the right hand key on the mouse is clicked a
context menu is also displayed. Is it possible to suppress the display of
the context menu?

 

 

David Park

djmpark at comcast.net

 <http://home.comcast.net/~djmpark> http://home.comcast.net/~djmpark/  



  • Prev by Date: Re: Solve vs Reduce
  • Next by Date: Display of Alternatives Symbol in Notebooks in Version 7
  • Previous by thread: Re: Debugging Mathematica
  • Next by thread: Re: EventHandler and Mouse Keys