.[http://www.fios.org/bionetlab/t-calc-1.gif] 2/6/2004 [MDD]: My seventh-grade daughter was complaining about the limitations of her calculator when checking her homework a while back, so I thought I'd play around a bit to see if I could put together a nice little calculator app that would serve her most immediate needs now, but also be able to evolve as her requirements evolve in the future. The initial result is t-Calc 1.0. You can download the [Starkit] [http://www.fios.org/bionetlab/t-calc-1b.kit] (fixed a bug), as well as a Windows [Starpack] [http://www.fios.org/bionetlab/t-calc-1b.zip]. It should be pretty self-explanatory, via the balloon help, but one cool feature that requires a little more explanation is the way you can assign arbitrary Tcl scripts to six user-defined buttons. I've pre-loaded them with some interesting little math apps by people like [RS] and [Keith Vetter], but you can easily replace them with code of your choosing by right-clicking on the particular user button. For the time being, the user apps run in separate slave interpreters. I'll most likely be adding all kinds of bells and whistles as time goes by, but this is pretty workable, for a start. ---- [RS]: Re teenage daughter, maybe [Fun with functions] may come in handy too? [MDD]: It's already there, on key u-6. Her one-word review of that one was "Cool!" ;-) I also put your [A little slide-rule] app on u-5 and hacked together a little gui for your [A little math language] on u-1 (that gui needs to be redone, though). It also uses your [A little database API] and [Persistent arrays] internally. One thing I intend to add, is the ability to choose whether you want each particular user app to run in a slave or in the master interpreter. Running in the master would allow the buttons to initiate operations on the values on the result box, for example. I'm also going to add a row of memory buttons: M+, MR, MC, etc. ---- 2/7/2004 [MDD]: OK. Here's an updated version 1.1 ([Starkit][http://www.fios.org/bionetlab/t-calc-1-1.kit] and Windows [Starpack][http://www.fios.org/bionetlab/t-calc-1-1..zip]: [http://www.fios.org/bionetlab/t-calc-1-1.gif] I added a checkbox option to determine whether the user-defined code runs in the main interpreter or in a slave interpreter. You can also define a custom button label for each user-defined button (though they won't appear until the next time you run the calculator). I also added a set of memory buttons, to do things like clear, add, subtract, recall, and swap. There are a couple of globals variables that are available to user apps that run in the main interpreter. These include $pi, which contains the value of Pi (3.14159265358979), and $resultbox, which is the text variable for the result box. ----