At 11:19 AM -0500 12/1/99, Rubin, Dan wrote:
>How did you implement the "readout display". I didn't want to use a field
>where they can click into, hi-light, cut&paste, etc... What I want to do is
>create an app where any time they click on a number button or enter a
>graffiti stroke the number is dumped into the "readout display" on the top
>of the screen.
The included calculator app _does_ allow you to highlight and cut and
paste. I didn't want to write a bunch of cluttered code that would
only prevent the user from doing something that is harmless and that
he probably won't want to do anyway. I even left in the popup
graffiti keyboards. So I just used a field, and the big calculator
font. That's why they're in the OS.
>Clicking on the "B" buton within the app or a backspace
>stroke will erase the last character and clicking on the "C" button within
>the app will clear the display. How do i create this type of display (like
>the one in the calculator app the is included with PalmOS).
Enqueue the backspace character, or empty the field, to achieve this.
>PS. Can I use pushbuttons instead of buttons for the calculator number
>buttons and just reset them after each push so they don't "stay down".
Sure, you could do that. But why would you want to? Again, it's
extra work, and all it would achieve would be to give the user
something that doesn't work like he expects it to based on
appearance.