[Date Index] [Thread Index] [Author Index]
Q: Can I create a button function ?
Dear fellow mathgroup members: I am trying to create a Mathematica notebook as a calculator type application for our project. I put some buttons such as fraction, square root, integration, differentiation etc. inside the notebook and an editable cell which works as the work and result window. I also put in a "Clear" button which I want to clear the contents in the editable window when I click it. But I can not find a function which can clear the cell but keep the original notebook open. I tried to write some button functions which I hope can replace the cell with blank cell or close the old, edited notebook then open an identical new notebook. But none of them worked. How can I achieve this goal by create my own Button Function and where should I keep this function? I suspect that I can not keep it with my notebook but somewhere with the system files. Is there a place I can find some sample code for create button functions? I am using V3.0.1 on Power Mac. TIA for any help, X. Jing Li