FutureBasic Logo

<<    Index    >> FutureBasic 5

window   statement



Syntax:
window idExpr[, [titleString][, rect]]]

Description:
A simplified form of the appearance window statement. Use the window statement to do any of the following:
The parameters should be specified as follows. They are interpreted slightly differently depending on whether you are creating a new window or altering an existing one.
To Create a New Screen Window

To Activate an Existing Window
To Make an Existing Window Visible or Invisible
To Alter the Characteristics of an Existing Window
Side Effects of Activating the Window
The window statement always makes the window active, unless you specify a negative idExpr. When you activate a window using the window statement, the following things also happen:

Side Effects of Making a Window Invisible
If idExpr is negative, the window becomes invisible, and it becomes the current output window. If the window was previously active, it becomes inactive; if your program has other visible windows, one of them becomes the active window.

Customising the Console window
The automatically created default Console window can be customised using an idExpr of _FBConsoleWndNum. For example, to maximise the height, use:
include "ConsoleWindow"
window _FBConsoleWndNum, "My Console Window", (5,50)-(500, system( _scrnHeight ) - 5 )

See Also:
appearance window; window close; window output; window function; dialog function