| WideStudio/MWT Index |
Table of contents
Sample:4 (A calculator)This is a demonstration of calculator, using the array of the buttons.
The source code is ws/samples/C/labelwork/wscalc.prj. Please load it and build it by the application builder.
this sample shows the following things.
- To demonstrate the calculation with the operator:+,-,/,*
(Notice)The specification of the calculator is not strict.
[A view of the application window]
- The number button
Input the number to the indicator.
- The operator button
Stores the operator if the button is "+","-","/","*", Calculates by the stored information if the button is "=",
- The other
The resize event procedure adjusts size/place of the buttons when the window is resized.
|Copyright(C) WideStudio/MWT Development Team, 1999-2005||Last modified: Jul 31, 2005|