Useful window attributes, methods, and events
- Last Updated: April 30, 2024
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
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.
| Type | Name | Description |
|---|---|---|
| Attribute | TITLE |
Specifies the window title. |
HEIGHT-CHARS
|
Specifies the standard height and width of the window. | |
MIN-HEIGHT-CHARS
|
Specifies the maximum height and width of the window. | |
MAX-HEIGHT-CHARS
|
||
VIRTUAL-HEIGHT-CHARS
|
Specifies the maximum display area of the window. | |
MESSAGE-AREA
|
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-AREA |
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
|
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. |