The following table describes the numerous attributes, methods, and events that you can use to control the appearance and behavior of windows in your application.

Table 1. Window attributes, methods, and events
Type Name Description
Attribute TITLE Specifies the window title.
HEIGHT-CHARS

WIDTH-CHARS

HEIGHT-PIXELS

WIDTH-PIXELS

Specifies the standard height and width of the window.
MIN-HEIGHT-CHARS

MIN-WIDTH-CHARS

MIN-HEIGHT-PIXELS

MIN-WIDTH-PIXELS

Specifies the maximum height and width of the window.
MAX-HEIGHT-CHARS

MAX-WIDTH-CHARS

MAX-HEIGHT-PIXELS

MAX-WIDTH-PIXELS

VIRTUAL-HEIGHT-CHARS

VIRTUAL-WIDTH-CHARS

VIRTUAL-HEIGHT-PIXELS

VIRTUAL-WIDTH-PIXELS

Specifies the maximum display area of the window.
MESSAGE-AREA

MESSAGE-AREA-FONT

Defines a message area and its font at the bottom of the window, where messages that are not qualified with the VIEW-AS ALERT-BOX phrase are displayed.
STATUS-AREASTATUS-AREA-FONT Defines a status area and its font at the bottom of the window.
SCROLL-BARS Defines whether scroll bars appear when the window is resized.
MENUBAR

POPUP-MENU

Associates a menu or pop-up menu with a window.
PARENT Establishes parent-child relationships between windows.
Method LOAD-ICON() Takes the name of an image file with the .ico extension and displays the image in the title bar of the window and in the task bar when the window is minimized.
LOAD-SMALL-ICON() Takes the name of an image file for an icon in the title bar or the task bar. The .ico file for either method can be an image of 16x16 or 32x32 pixels.
Event WINDOW-MINIMIZED Fires when a window is minimized.
WINDOW-MAXIMIZED Fires when a window is maximized.
WINDOW-RESTORED Fires when a window is restored after being minimized.
WINDOW-RESIZED Fires when a keyboard or mouse event starts to change the window’s size. The window’s RESIZE attribute must be true for this to occur.
WINDOW-CLOSE Fires when the user selects the standard icon used to close the window. In fact, the AVM does not take any action automatically when the WINDOW-CLOSE event occurs—it does not even close the window! For this reason, you need to define a trigger for the WINDOW-CLOSE event, as described in the next section.