Q: Can I create a button function ?
- To: mathgroup at smc.vnet.net
- Subject: [mg18833] Q: Can I create a button function ?
- From: xingjing at calvin.math.vt.edu (Xingjing Li)
- Date: Thu, 22 Jul 1999 08:19:42 -0400
- Organization: The Math Forum
- Sender: owner-wri-mathgroup at wolfram.com
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