

ClickPane
Details and Options

- The image in a click pane can be a graphic or any other expression.
- For a Graphics object g, ClickPane[g,func] 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[expr,func] takes the range of coordinates to be 0 to 1 in each direction.
- ClickPane takes the following options:
-
Method "Preemptive" the evaluation method to use PassEventsDown Automatic whether to pass events to inner event handlers PassEventsUp True whether to pass events to outer event handlers
Examples
open all close allOptions (3)
Method (1)
By default, the function is evaluated on a preemptive link and time out after 5 seconds:
Use Method->"Queued" to evaluate the function on the main link, which never times out:
PassEventsDown (1)
By default, clicking on the button triggers the ClickPane, but not the button:
Use PassEventsDown to enable the click to register for the button as well:
PassEventsUp (1)
Clicking in the inner pane triggers both inner and outer panes:
Use PassEventsUp to disable the outer pane when the inner pane is clicked:
Applications (6)
Visualize solutions to a linear system of differential equations :
Keep track of all solutions as you go:
Create a circle from three points [more info]:
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:
Properties & Relations (1)
ClickPane is a special case of EventHandler:
Possible Issues (1)
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:
Tech Notes
Related Workflows
- Use Locator Controls ▪
- Build a Manipulate
History
Text
Wolfram Research (2007), ClickPane, Wolfram Language function, https://reference.wolfram.com/language/ref/ClickPane.html.
CMS
Wolfram Language. 2007. "ClickPane." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ClickPane.html.
APA
Wolfram Language. (2007). ClickPane. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ClickPane.html
BibTeX
@misc{reference.wolfram_2025_clickpane, author="Wolfram Research", title="{ClickPane}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/ClickPane.html}", note=[Accessed: 11-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_clickpane, organization={Wolfram Research}, title={ClickPane}, year={2007}, url={https://reference.wolfram.com/language/ref/ClickPane.html}, note=[Accessed: 11-August-2025]}