I would like to make an Epilog moveable. For example, the following code generates a Manipulate with a framed pane containing some notes. I would like the user to be able to move those notes anywhere inside the graphics area using a drag and drop. This will allow the user to see what's behind it without completing hiding the notes using the checkbox provided.
Manipulate[
Plot[Sin[a*x] - .3, {x, -3, 3},
Epilog ->
Inset[If[t,
Framed[Pane[
"I want the user to have the abilty to move this box anywhere
inside this white area so the user can see what's behind it.", 70],
Background -> LightBlue, RoundingRadius -> 4,
BaseStyle -> Gray], ""], {Right, Bottom}, {Right, Bottom}]], {a,
1, 10}, {{t, True, "Hide/Show Notes"}, {True, False}}]
How would I go about programming this? I was thinking about using a locator control but not sure if this is the best way. I want to be able to click ANYWHERE on the framed pane and drag it anywhere in the graphics area. It seems like there should be a simple way to do this. Ideas?
I would like the user to be able to move those notes anywhere inside the graphics area using a drag and drop
From usability point of view, I do not think this is a good idea for GUI. I do not want to look at something where I have to move stuff using the mouse on it to see what behind them or around them. User will also have to know they can use the mouse to do this. This is all too hectic if you ask me. Having a button to show/hide notes is a fine idea. But not having user move the notes around with the mouse. $\endgroup${{loc, {1, 1}}, {-3, -2}, {3, 1}, ControlType -> Locator, Appearance -> None}
toManipulate
and replace the first{Right, Bottom}
insideInset
withloc
. $\endgroup$