0
$\begingroup$

The following code produces a tooltip for the string "parabola":

Tooltip["parabola", 
 Panel[Style[
   TextCell[
    "A parabola is a symmetrical open plane curve formed by the intersection of a cone with a plane parallel to its side. The path of a projectile under the influence of gravity ideally follows a curve of this shape."], Background -> LightGreen], Background -> LightGreen,
   ImageSize -> {250, Automatic}]]

enter image description here

I'd like the popup to appear above the string "parabola" (rather than below and to the right). Is it possible to control the placement of tooltips? I can't seem to find any options to control this. I can build a custom one using an attached cell, but this won't work for me as the Wolfram Cloud does not support attached cells. It does support tooltips.

For reference... Solution Using an Attached Cell:

Button[Style["parabola", "Text"], 
 obj = AttachCell[EvaluationBox[], 
   Panel[Style[
     TextCell[
      "A parabola is a symmetrical open plane curve formed by the intersection of a cone with a plane parallel to its side. The path of a projectile under the influence of gravity ideally follows a curve of this shape."], Background -> LightGreen], Background -> LightGreen,
     ImageSize -> {150, Automatic}], Top, 8, Bottom, 
   RemovalConditions -> "MouseExit"], AutoAction -> True, 
 Appearance -> None]

Also for reference....Solution Using Mouse Appearance:

Dynamic@MouseAppearance[
  Annotation["parabola", 
   Panel[Style[
     TextCell[
      "A parabola is a symmetrical open plane curve formed by the intersection of a cone with a plane parallel to its side. The path of a projectile under the influence of gravity ideally follows a curve of this shape."], Background -> LightGreen], Background -> LightGreen,
     ImageSize -> {150, Automatic}], "Mouse"], 
  MouseAnnotation[], {0.5, -1}]
$\endgroup$
5
  • 1
    $\begingroup$ there does not seem to be an option to change location of tooltip. $\endgroup$ Commented May 4, 2023 at 1:53
  • $\begingroup$ If the window is at the bottom it pops up above the location. See this screenshot. And I don't know how to force its location. $\endgroup$ Commented May 4, 2023 at 2:50
  • 1
    $\begingroup$ Related to 1146. $\endgroup$ Commented May 4, 2023 at 3:11
  • 1
    $\begingroup$ You can make one with AttachCell. $\endgroup$ Commented May 4, 2023 at 6:27
  • $\begingroup$ Yes, according to John Fulz, it's not possible. I posted a solution using an attached cell and another using mouse appearance but neither work in the Woflram Cloud. A tooltip solution would have been nice. $\endgroup$ Commented May 4, 2023 at 6:56

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.