CRT Icon  Window Object


 

Description

The Window object provides access to properties and methods relating to CRT's window such as the windowÆs visible state, caption, etc.

 

Syntax

window.property [ = expression ]

window.Method([arglist])

 

Remarks

CRT's Window object is accessed through the top-level objectÆs æWindowÆ property.

 

Window Object Properties and Methods

Properties

Methods

ááááActive

ááááActivate

ááááCaption

ááááShow

ááááState

 

 

Properties

 

Active

Description

Returns True if CRT's window is the active window, otherwise False.

Syntax

object.Active

Remarks

Boolean read-only property.

 

Caption

Description

Returns or sets the title or caption of CRT's application window.

Syntax

object.Caption [ = string ]

Remarks

Read/write string property.

 

State

Description

Returns a number indicating the state of CRT's application window.

Syntax

object.State

Remarks

Read-only numeric property. The state may be one of the following values depending on CRT's window state:

0 - hidden

1 - visible (normal)

2 - minimized

3 - maximized

 

 

Methods

 

Activate

Description

Gives focus to the CRT window, bringing the window to the top of the desktop.

Syntax

object.Activate

Remarks

On Windows 98 and Windows 2000, calling Activate()from a script may cause CRT's icon to flash in the task bar instead of raising CRT to the top. This is the required behavior for these operating systems.

 

Show

Description

Shows, hides, minimizes, maximizes or restores CRT's application window

Syntax

object.Show number

Remarks

The state may be one of the following values:

0 - Hide

1 - Show (Normal)

2 - Minimize

3 - Maximize