[AmigaOS / ApolloOS Command Reference\Calculator] 
 

CALCULATOR

Format: CALCULATOR [PUBSCREEN <public screenname>] [TAPE <window>] Template: PUBSCREEN, TAPE/K Purpose: To provide an on-screen calculator. Path: Extras:Tools/Calculator Specification: CALCULATOR starts the Calculator program. You can cut and paste the output of the Calculator into any console window, like the Shell or ED. TAPE allows you to create a Calculator window of a specific size in which to display your input and output. The specification is in the form of: TAPE=RAW:x/y/width/height/title/options Where:

x

Is the number of pixels from the left edge of the screen to the left border of the window.

y

Is the number of pixels from the top of the screen to the top of the window.

width

Is the width of the window, in pixels.

height

Is the height of the window, in pixels.

title

Is the text that appears in the window title bar. The permissible options are:

AUTO

The window automatically appears when the program needs input or produces output. With the Shell window, it will open for input immediately. The window can only be closed with the ENDSHELL command. Selecting the Shell's close gadget will close the window, but it will re-open immediately since it is expecting input.

CLOSE

The window has all the standard gadgets, including a close gadget.

BACKDROP

The window appears on the backdrop, behind all the Workbench windows. The only gadget in the window border is the zoom gadget. This Shell window cannot be brought to the front of the screen; you have to resize the Workbench windows to see it.

NOBORDER

The window opens without any left or bottom window border. Only the zoom, depth, and sizing gadgets are available.

NODRAG

The window cannot be dragged. It has a zoom, depth and sizing gadget, but no close gadget.

NOSIZE

The window only has a depth gadget.

SCREEN

The window will open on a public screen. The screen must already exist. You must specify the name of the screen after the SCREEN keyword.

SIMPLE

If you enlarge the window, the text will expand to fill the newly available space, allowing you to see text that had been scrolled out of the window.

SMART

If you enlarge the window, the text does not expand to fill the newly available space.

WAIT

The window can only be closed by selecting the close gadget. (An example of this is the Execute Command Workbench Output Window.) To exit the program, select the window's close gadget. Example: 1> CALCULATOR