I created a palette using an Action menu with the following code:
MakeInfo[] :=
CreateDocument[
Column[
{
Framed[
Pane[
Information[CurrentValue[InputNotebook[], "SelectionData"],
"Options"]// Column
, {390, 190}
, Scrollbars -> "True"
, AppearanceElements -> "None"
, ImageMargins -> {0, 0}
, FrameMargins -> {0, 0}]],
Framed[
Pane[
Information[CurrentValue[InputNotebook[], "SelectionData"],
"Usage"]// Column
, {390, 190}
, Scrollbars -> "True"
, AppearanceElements -> "None"
, ImageMargins -> {0, 0}
, FrameMargins -> {0, 0}]]
}
, Spacings -> {0, 0}]
, FontSize -> 13
, FontFamily -> "Verdana"
, Editable -> False
, CellDingbat -> None
, CellFrame -> 0
, CellFrameMargins -> 0
, CellMargins -> 16
, ShowCellBracket -> False
, WindowSize -> {540, 540}
, ImageMargins -> {0, 0}
, WindowFrame -> "Palette"
, WindowElements -> {"MagnificationPopUp"}
, WindowTitle ->
ToString[CurrentValue[InputNotebook[], "SelectionData"]] <>
" Information"
];
ActionMenu[
"F[x]",
{"Get Information..." :> MakeInfo[],
"Full Documenatation..." :>
FrontEndExecute[{
FrontEndToken[ FrontEnd`InputNotebook[],
"SelectionHelpDialog"]}]
}]
However, This code fails to work after reloading the Mathematica app. Yes, I an revaluate the code in another notebook to make it work. What am I missing here to make the code stick between sessions? Thanks for your help.