Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Dynamic Interactivity > Custom Interface Construction > Click-Interactive Panels > ClickPane >
Mathematica > Visualization and Graphics > Graphics Interactivity & Drawing > Click-Interactive Panels > ClickPane >

ClickPane

ClickPane
represents a clickable pane that displays as image and applies func to the coordinates of each click within the pane.
ClickPane
specifies the range of coordinates to use.
  • The image in a click pane can be a graphic or any other expression.
  • For a Graphics object g, ClickPane by default takes the range of coordinates supplied to func to be the range of graphics coordinates corresponding to PlotRange in g.
  • For a general expression, ClickPane takes the range of coordinates to be 0 to 1 in each direction.
Move the point to where the "click" occurred:
Center the disk on mouse clicks:
Move the point to where the "click" occurred:
In[1]:=
Click for copyable input
Out[1]=
 
Center the disk on mouse clicks:
In[1]:=
Click for copyable input
Out[1]=
Visualize solutions to a linear system of differential equations :
Keep track of all solutions as you go:
Create a circle from three points :
Detect whether you are inside or outside a disk:
Make a plot where the arrow "snaps" to the curve when you click inside the pane:
Make a plot where the arrow "snaps" to one of the extrema:
For a "click" to register, you must press and release the mouse at the same point:
Use EventHandler to get additional flexibility in registering actions with events:
New in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF