WideStudio Programming Guide

| WideStudio Programming Guide | WideStudio 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.

Document Release 3.70 for WideStudio ver 3.70, Feb 2004

WideStudio documents index | Table of contents

Copyright(C) T. Hirabayashi, 2000-2004 | Last modified: Feb 25, 2004