I created a custom palette, with an ActionMenu
that executes ClearAll["Global`*"]
. It performs the desired action, but the frontend doesn't instantly update the colors from black to blue (standard), as it happens when ClearAll["Global`*"]
is executed directly from a notebook cell (it only updates after something else has been executed). Is there a way to initiate a refresh of the frontend display status?
EDIT: Apparently, the same happens when I load a package from a palette (blue doesn’t immediately update to black).
Not exactly elegant, but it works (the main loop has to be called once after ClearAll):
Of course, one should use the new Mathematica 8 NotebookEvaluate function, but it seems not to work here (i.e.,
gives an error message