CALCIT - Pop Up Calculator
CALCIT is a useful pop up calculator written entirely in PICK/BASIC that can be called from TCL at any time. It can also be called as a subroutine from any PICK/BASIC program. When called, the calculator is drawn almost instantly on top of the current application/TCL screen. When the user exits the calculator, the underlying application/TCL screen is restored instantly to its original state.
CALCIT has built in support for a mouse. The BASIC program, through HostAccess will detect the existence of the mouse and allow it to be used in addition to the keyboard.
Starting CALCIT
CALCIT may be invoked from the TCL command line as follows:
CALCIT {startvalue}
Where:
startvalue | Is an optional starting value to add into the calculator. |
Using CALCIT
Using CALCIT is fairly straightforward. When using the keyboard, type the digits you require along with the relevant +, -, *, /, % keys. If you have a mouse you can also move the mouse pointer to the relevant digit and click to select.
To obtain the result of a calculation, select '=' or <RETURN>.
In addition to the numeric and operand keys, the following keys are available :
C |
Clear Value. |
M |
Save Value into Memory. |
R |
Recall value from memory. |
? |
Help (shows current precision). |
To exit the calculator press Q or click outside of the calculator window with the mouse.
CALCIT Applications Integration
CALCIT is a verb interpreted by the PIX.DRIVER routine. It is processed by the subroutine PIX.CALC which may be called by any PICK program.
Remember, CALCIT will restore your application screen so you can CALL PIX.CALC from virtually anywhere in your code.
PICK developers who wish to present their users with the CALCIT pop up calculator should call the PIX.CALCIT subroutine directly as follows:
CALL PIX.CALC(START.VALUE,RETURN.VALUE)
Where:
START.VALUE | Optional starting value your application can send to feed into the calculator. Set this variable to null if no start value required. |
RETURN.VALUE |
The result of the user's last calculation, which your application may use, as required. |