Previous Next Chapter

WINDOW.MIN.HEIGHT

Minimum height of the window.

WINDOW.MAX.WIDTH

Maximum width of the window.

WINDOW.MAX.HEIGHT

Maximum height of the window.

WINDOW.VIEW.LEFT

Horizontal offset of the drawer contents; this value corresponds to the horizontal window scroller position.

WINDOW.VIEW.TOP

Vertical offset of the drawer contents; this value corresponds to the vertical window scroller position.

WINDOW.SCREEN.NAME

Name of the public screen the window was opened on.

WINDOW.SCREEN.WIDTH WINDOW.SCREEN.HEIGHT

Size of the public screen the window was opened on.

WINDOW.ICONS.ALL.COUNT

Number of the icons displayed in the window. This can be 0.

WINDOW.ICONS.ALL.0 .. WINDOW.ICONS.ALL.N

Information on all the icons displayed in the window:

WINDOW.ICONS.ALL.<n>.NAME

Name of the icon in question.

WINDOW.ICONS.ALL.<n>.LEFT WINDOW.ICONS.ALL.<n>.TOP

Position of the icon in question.

WINDOW.ICONS.ALL.<n>.WIDTH WINDOW.ICONS.ALL.<n>.HEIGHT

Size of the icon in question.

WINDOW.ICONS.ALL.<n>.TYPE

Type of the icon; one of DISK, DRAWER, TOOL, PROJECT,GARBAGE, DEVICE, KICK or APPICON.

WINDOW.ICONS.ALL.<n>.STATUS

Whether the icon is selected and (if the icon is a drawer-likeobject, such as a disk, drawer or trashcan icon) whether thecorresponding drawer is currently open or closed. This attributeis returned in the form of a string, such as SELECTED OPEN" which means that the icon is selected and the corresponding draweris currently open. The other options include UNSELECTED" andCLOSED".

WINDOW.ICONS.SELECTED.COUNT

Number of the selected icons displayed in the window. This can be 0.

WINDOW.ICONS.SELECTED.0 .. WINDOW.ICONS.SELECTED.N

Information on all selected the icons in the window:

WINDOW.ICONS.SELECTED.<n>.NAME

Name of the icon in question.

WINDOW.ICONS.SELECTED.<n>.LEFT WINDOW.ICONS.SELECTED.<n>.TOP

Position of the icon in question.

WINDOW.ICONS.SELECTED.<n>.WIDTH WINDOW.ICONS.SELECTED.<n>.HEIGHT

Size of the icon in question.

WINDOW.ICONS.SELECTED.<n>.TYPE

Type of the icon; one of DISK, DRAWER, TOOL, PROJECT,GARBAGE, DEVICE, KICK or APPICON.

WINDOW.ICONS.SELECTED.<n>.STATUS

Whether the icon is selected and (if the icon is a drawer-like object, such as a disk, drawer or trashcan icon) whether the corresponding drawer is currently open or closed. This attribute is returned in the form of a string, such as SELECTED OPEN" which means that the icon is selected and the corresponding drawer is currently open. The other options include UNSELECTED" and CLOSED". Of course, for the WINDOW.ICONS.SELECTED stem the icon status will always be reported as SELECTED".

WINDOW.ICONS.UNSELECTED.COUNT

Number of the unselected icons displayed in the window. This can be 0.

WINDOW.ICONS.UNSELECTED.0 .. WINDOW.ICONS.UNSELECTED.N

Information on all selected the icons in the window:

WINDOW.ICONS.UNSELECTED.<n>.NAME

Name of the icon in question.

WINDOW.ICONS.UNSELECTED.<n>.LEFT WINDOW.ICONS.UNSELECTED.<n>.TOP

Position of the icon in question.

WINDOW.ICONS.UNSELECTED.<n>.WIDTH WINDOW.ICONS.UNSELECTED.<n>.HEIGHT

Size of the icon in question.

WINDOW.ICONS.UNSELECTED.<n>.TYPE

Type of the icon; one of DISK, DRAWER, TOOL, PROJECT, GARBAGE, DEVICE, KICK or APPICON.

WINDOW.ICONS.UNSELECTED.<n>.STATUS

Whether the icon is selected and (if the icon is a drawer-like object, such as a disk, drawer or trashcan icon) whether the corresponding drawer is currently open or closed. This attribute is returned in the form of a string, such as UNSELECTED OPEN" which means that the icon is selected and the corresponding drawer is currently open. The other options include SELECTED" and CLOSED". Of course, for the WINDOW.ICONS.UNSELECTED stem the icon status will always be reported as UNSELECTED".

Errors:

10 - If the requester information could not be retrieved, you requested more than one database entry and did not provide a stem variable or if you provided a stem variable but did not request more than one database entry. The error code will be placed in the WORKBENCH.LASTERROR variable.

Result:

RESULT - The information retrieved from the database.

Example:

/* Query the Workbench version. */
ADDRESS workbench
OPTIONS RESULTS

GETATTR application.version
SAY result

/* Query the Workbench version and store it in the * variable `version_number`. */
GETATTR application.version
VAR version_number
SAY version_number

/* Query the names of all currently open windows, * then print them. */
GETATTR windows
STEM window_list

DO i = 0 TO window_list.count-1
SAY window_list.i;
END;

/* Query name, position and size of the first icon * shown in the root window. */
GETATTR window.icons.all.0
NAME root
STEM root

SAY root.name
SAY root.left
SAY root.top
SAY root.width
SAY root.height
SAY root.type

/* Query the width and height of the root window. */
GETATTR window.width
NAME root
SAY result

GETATTR window.height
NAME root
SAY result

/* Query the length of a text (in pixels) with reference * to the icon font. */
GETATTR application.font.icon.size
NAME ,Text to measure`
SAY result

Top Previous Next Chapter