The CreatingPalettes help file shows how to create a palette with special symbols:
CreatePalette[
Grid[
Partition[
PasteButton[Style[#, 12], RawBoxes[#],ImageSize->24]&
/@
{"π", "E", "I", "∞", "°", "*", "/", "->", ":>", "==",
"!=", "<=", ">=", "∈", "∍", "¬", "∧", "∨", "⋃", "⋂"},
5],
Spacings->{0,0}]];
I am trying to create a palette that includes some special symbols, and I also want to include tooltips. But, if, for example, I replace "Pi"
with Tooltip ["Pi", "3.14"]
, the tooltip 3.14
displays nicely, but when I click on Pi
, the result includes the word Tooltip
along with the label:
Tooltip["π", "3.14"]
I have tried every which way for several days to add tooltips that behave. Meanwhile I have added lots and lots of other features, but this one defies me. I know it can't be hard but ...
PasteButton
withinTooltip
, instead of the other way round. Unfortunately I'm on mobile and can't test it myself. $\endgroup$