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
    23.3 KB · Views: 253
  • Calc2.sbp
    4.6 KB · Views: 287
  • Calc7.sbp
    7.6 KB · Views: 281
  • Calcgpic.JPG
    23.2 KB · Views: 253
  • calc2zip.zip
    15.4 KB · Views: 286
  • calc7zip.zip
    27.4 KB · Views: 281
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…