Simple 4 function calculator: +, -, x, /

pdablue

Active Member
Licensed User
Longtime User
Hi,

Here is a simple 4 function (+, -, x, / ) calculator program.

The first program example uses plain Button controls, which is
quite boring visually.

The second program example uses ImageButton controls to make it
a little more visually interesting.

To use the calculator:

Enter the first number.
Select the mathematical operation: ( +, -, x, / ).
Enter the second number.
Press the Equal key (=) to get the result.

Press the CLR key to clear the calculator.
Press the CE key to clear the last entry.

The file "Calcpic.JPG" is a screenshot of the Button Control version.
The file "Calcgpic.JPG" is a screenshot of the ImageButton Control version.
The file "Calc2.sbp" is the B4ppc source for the Button Control version.
The file "Calc7.sbp" is the B4ppc source for the ImageButton Control version.

The file "calc2zip.zip" is the zipped up ARMV4 (.CAB) file for the Button
control version.

The file "calc7zip.zip" is the zipped up ARMV4 (.CAB) file for the ImageButton
control version.

The files: "CAL1apic.jpg", "CAL2apic.jpg", "CAL3apic.jpg", "CAL4apic.jpg", "CAL5apic.jpg" and
"CAL6apic.jpg" are screenshots showing different button control arrangements.

You can rearrange the controls to get a variety of different looks while the program
code stays exactly the same. You can give each a different name to create a variety
of different looking products while maintaining only one software program.
 

Attachments

  • Calcpic.JPG
    Calcpic.JPG
    23.3 KB · Views: 208
  • Calc2.sbp
    4.6 KB · Views: 232
  • Calc7.sbp
    7.6 KB · Views: 231
  • Calcgpic.JPG
    Calcgpic.JPG
    23.2 KB · Views: 209
  • calc2zip.zip
    15.4 KB · Views: 235
  • calc7zip.zip
    27.4 KB · Views: 238
Last edited:
Top