Horizontal offset of the drawer contents; this value corresponds to the horizontal window scroller position.
Vertical offset of the drawer contents; this value corresponds to the vertical window scroller position.
Type of the icon; one of DISK, DRAWER, TOOL, PROJECT,GARBAGE, DEVICE, KICK or APPICON.
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".
Number of the selected icons displayed in the window. This can be 0.
WINDOW.ICONS.SELECTED.<n>.LEFT WINDOW.ICONS.SELECTED.<n>.TOP
WINDOW.ICONS.SELECTED.<n>.WIDTH WINDOW.ICONS.SELECTED.<n>.HEIGHT
Type of the icon; one of DISK, DRAWER, TOOL, PROJECT,GARBAGE, DEVICE, KICK or APPICON.
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".
Number of the unselected icons displayed in the window. This can be 0.
WINDOW.ICONS.UNSELECTED.<n>.LEFT WINDOW.ICONS.UNSELECTED.<n>.TOP
WINDOW.ICONS.UNSELECTED.<n>.WIDTH WINDOW.ICONS.UNSELECTED.<n>.HEIGHT
Type of the icon; one of DISK, DRAWER, TOOL, PROJECT, GARBAGE, DEVICE, KICK or APPICON.
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".
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.
/* 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