[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


Changing the size and location

SIOUX lets you change the size and location of the SIOUX window.

To change the size of the window, set rows to the number of lines of text in the window and set columns to the number of characters in each line. SIOUX checks the font you specified in fontid, fontsize, and fontface and creates a window that will be large enough to contain the number of lines and characters you specified. If the window is too large to fit on your monitor, SIOUX creates a window only as large as the monitor can contain.

For example, the code below creates a window that contains 10 lines with 40 characters per line:


  SIOUXSettings.rows = 10;   SIOUXSettings.columns = 40;

By default, the SIOUX window contains 24 rows with 80 characters per row.

To change the position of the SIOUX window, set toppixel and leftpixel to the point where you want the top left corner of the SIOUX window to be. By setting toppixel to 38 and leftpixel to 0, you can place the window as far left as possible and just under the menu bar. Notice that if toppixel is less than 38, the SIOUX window is under the menu bar. If toppixel and leftpixel are both 0, SIOUX doesn't place the window at that point but instead centers it on the monitor.

For example, the code below places the window just under the menu bar and near the left edge of the monitor:


  SIOUXSettings.toppixel = 40;   SIOUXSettings.leftpixel = 5;

Changing what happens on quit

The fields autocloseonquit and asktosaveonclose let you control what SIOUX does when your program is over and SIOUX closes its window.

The field autocloseonquit determines what SIOUX does when your program has finished running. If autocloseonquit is true, SIOUX automatically exits. If autocloseonquit is false, SIOUX continues to run, and you must choose Quit from the File menu to exit. By default, autocloseonquit is false.


TIP

You can save the contents of the SIOUX window at any time by choosing Save from the File menu.

The field asktosaveonclose determines what SIOUX does when it exits. If asktosaveonclose is true, SIOUX displays a dialog asking whether you want to save the contents of the SIOUX window. If asktosaveonclose is false, SIOUX exits without displaying the dialog. By default, asktosaveonclose is true.

For example, the code below quits the SIOUX application as soon as your program is done and doesn't ask you to save the output:


  SIOUXSettings.autocloseonquit = true;   SIOUXSettings.asktosaveonclose = false;

Showing the status line

The field showstatusline lets you control whether the SIOUX window displays a status line, which contains such information as whether the program is running, handling output, or waiting for input. If showstatusline is true, the status line is displayed. If showstatusline is false, the status line is not displayed. By default, showstatusline is false.


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 16, 2000