How to create a button, which has exactly the same functionality as pressing ctlr+2 in an inputField? So it is basicly appending an sqrt sign to a string.
$\begingroup$
$\endgroup$
CreatePalette[{"Square root",PasteButton[Sqrt@\[SelectionPlaceholder]]}]
-
$\begingroup$ Can't just ignore simplicity and readability; +1 $\endgroup$ – Sektor Aug 26 '15 at 17:49
-
$\begingroup$ In a .nb notebook, it opens a new notebook for the palette everytime i run it, and if I try to close this palette, it asks me if i want to save it or not. ...strange $\endgroup$ – Ricsi Nincs Aug 26 '15 at 17:51
CreatePalette
, etc ? $\endgroup$ – Sektor Aug 26 '15 at 17:36