I want to have a palette that includes a button for defining subscripted variables as symbols. As this is only needed once per session, I also want the button to change colour when pressed. The code I am trying is attached. However, whilst it changes colour when pressed it does not change subscripted variables to symbols. Yet, if I use the Symbolize function on its own i.e. not in a button, it works. Is this a bug or am I doing something wrong?
I was aware of the need to be careful with Symbolize. The problem was getting it to work in a buttonm which then forms part of a palette that sets up my Notebook the way I want it to do engineering calculations. With a little help from tech support and Notebook assistant, I have settled on the following code.