Hi Token,
Simple? Well, I do see the amazing amount of work you have invested.
Your SuperCalc isn't far away
I am not familiar with RPN, but please allow me a few suggestions:
1. A larger colored display.
2. Image buttons for the keys would allow you to underlay, say, a GIF with a shade of a color.
3. Erel's tutorial at
http://www.b4x.com/forum/showthread.php?t=907
may help shorten the source code.
Very nice, indeed!
Many thanks for your suggestions! The display is only a temporary solution, I have now implementet a third line for status-messages in the top and moved the two stack lines a bit more to the bottom, nearer to the keyboard. The font for the stack displayis now larger too.
Image buttons is one thing I want to implement when I have the main framework for the calculator more finished.
I've reworked the concept - now using somewhat like a state machine to handle the keypresses in different modes. Startet to implement a program editing- and running-mode, wich is in the very first experimental stage, but the aproach should work in the future. Different modes are really a bit confusing now and I startet to document the neccessaryest with remarks.
The further I step, the more work I see - but it's a lot of fun and I think I will learn a lot with this proggy.
Btw.: Congratulation to Erel, who has done a really great thing with BASIC4PPC - it has grown up to a phantastic developement kit, wich is a joy to use!
p.S: Here is my version 0.2 - Concept reworked - Programm Edit and Run mode added - very buggy and limited, as allready mentioned. You can only use F2 - edit/run/clr, when you edit, the old program will be erased and only basic arithmetik operators are allowd - no branching, looping or conditions of course, for now.
Example: you want to calculate hours out of seconds - you can type 60 / 60 / into the editor. With F2 and Edit again, you return to normal calculator mode. Then you put your seconds into stackline 1 (no ENTER) and hit F2 - Run to run the little programm. You will get the divided value into stackline 1. Not really usefull for now, but I think the basic concept should work with more complicated things.
p.p.s.: the dynamic handling of controls from your link is shurely a far more elegant way to handle the key-stuff - thanks for the tip!