Window Class

The Window class is the abstract superclass of all Form and Control classes. The Window class provides properties and methods that apply to all forms and controls; for example, all graphical properties and methods are defined at the Window class level and therefore apply to any form or control. You cannot add a subclass to the Window class.

The backColor and borderStyle properties may have no effect in certain controls but are defined for internal reasons; for example, showing three-dimensional effects. For example, the borderStyle property has no meaning for a scroll bar control, as that control always has a border.

A local variable can be described as a window in logic and access all properties and methods of the Window class.

Window, Form, and Control methods and events cannot be invoked from a server method.

Jade supports mouse wheel requests, as follows.

  1. If the window under the mouse has a vertical scroll bar, the mouse wheel request is treated the same as a scroll bar line up or line down, depending on the way that the wheel is turned (that is, the scroll wheel is treated the same as clicking on the up or down arrow of the scroll bar).

  2. If the window under the mouse has no vertical scroll bar but has a horizontal scroll bar, the mouse wheel request is treated the same as a scroll bar line left or line right, depending on the way that the wheel is turned (that is, the scroll wheel is treated the same as clicking on the left or right arrow of the scroll bar).

  3. If the window under the mouse does not have scroll bars, the window that has focus or the first parent of that window with a scroll bar is scrolled.

    If the window has a vertical scroll bar, the mouse wheel request is treated the same as a scroll bar line up or line down, depending on the way that the wheel is turned. If the window (or its parent) has no vertical scroll bar but has a horizontal scroll bar, the mouse wheel request is treated the same as a scroll bar line left or line right, depending on the way that the wheel is turned.

When a control receives focus and it is not within the visible region of a container (or containers) control that has scroll bars (for example, a BaseControl or Picture control), the container is automatically scrolled to bring the control into view. The scroll events for the container (or containers) are also called for this process. The position of children within a ListBox, Table, or TextBox control remains absolute and is not affected by any scrolling within those controls.

The automatic scrolling of a control into view does not occur if the focus is received as result of a mouse click (that is, if the window is only partially visible, clicking on it does not cause the window to move to show more of the window).

When multiple monitors are running on one workstation, the following points apply. (For details about terminating GUI applications with no visible forms when running multiple desktops, see "Showing an Invisible Form", in Chapter 1 of the Runtime Application Guide.)

For the arrays associated with control and menu item children (for example, the Window class allControlChildren and MenuItem class children properties), the only methods that are implemented are at (which allows the use of square brackets to access the elements), createIterator (which allows logic to do a foreach over the array), size, and size64.

For a summary of the constants, properties, and methods defined in the Window class, see "Window Class Constants", "Window Properties", and "Window Methods", in the following subsections. For details about the graphics properties and methods defined in the Window class, see "Graphics Properties and Methods", later in this document.

For details of system classes and their associated constants, properties, methods, and events, see "System Classes", in Chapter 1. For details about primitive types and their associated methods, see "Primitive Types", in Chapter 1 of the Encyclopaedia of Primitive Types.

Object

Control, Form