SAS Component Language Dictionary |
Category: | Window |
Syntax | |
Values for Info-item | |
Example | |
See Also |
Syntax |
rc=WINFO(info-item<,aux-info>); |
specifies either a characteristic of the window or an action. See Values for Info-item.
specifies an additional argument that is required by some info-item actions:
is the number of the pane to be queried. For example, in an extended table the non-scrollable section is pane 1 and the scrollable portion is pane 2.
is the item identifier that you specified with the ID= option for the ITEM statement in PROC PMENU when you built the menu. Use the negative of the ID number to gray a selection, and use the positive ID number to ungray a selection.
is the item identifier that you specified with the ID= option for the ITEM statement in PROC PMENU when you built the menu. Use the negative of the ID number to turn off the check mark or radio button for the selection, and use the positive ID number to turn on the check mark or radio button. Whether the menu selection gets a check mark or radio button depends on the value of the STATE= option when the menu was built.
can have the following values:
0 | |
1 |
Values for Info-item |
The following list explains the meaning of the return code, rc, for each value that you can specify for info-item:
WINFO returns 1 if the application is running in batch mode.
WINFO returns the number of the SCREEN or FRAME entry in which the cursor is located.
WINFO returns 1 if the user's output device supports graphics.
WINFO returns the number of Institute-supplied icons available under the user's host operating system. See the SAS documentation for your operating system for information about whether SAS software supports icons under your host operating system.
WINFO returns 1 if a logon was specified when the SAS/AF application was invoked.
WINFO returns the maximum number of columns to which the window can grow with the current screen resolution, excluding the command and border areas.
WINFO returns the maximum number of rows to which the window can grow with the current screen resolution, excluding the command and border areas.
WINFO returns information about the windows currently open in an application:
FSEDIT applications return the number of screens that are defined for the current FSEDIT window.
FSVIEW applications return 4 to indicate the four parts of the FSVIEW window: the column title area, the row number or ID column area, the data area, and the area above the column titles.
SAS/AF applications return 1 or 2 if you used ^^^ or ¬ ¬ ¬ to divide the entry's window into two or more frames.
WINFO returns the window width in inches (valid only for FRAME entries).
WINFO returns the window height in inches (valid only for FRAME entries).
WINFO returns the window width in pixels (valid only for FRAME entries).
WINFO returns the window height in pixels (valid only for FRAME entries).
WINFO returns the column position of the cursor relative to the pane of the window in which it resides. Use aux-info to specify the pane.
WINFO returns the row position of the cursor relative to the pane of the window in which it resides. Use aux-info to specify the pane.
WINFO returns the number of columns in a specified pane. Use aux-info to specify the pane.
WINFO returns the number of rows in a specified pane. Use aux-info to specify the pane.
WINFO returns 1 if a PMENU entry has been specified for this program regardless of whether the PMENU facility is currently active for the window.
WINFO returns 0 when it grays or ungrays selections in the window's pull-down menus. Use aux-info to specify which selection to gray or ungray.
WINFO returns 0 when it enables or disables the state of a selection in the window's pull-down menus. Use aux-info to specify the state.
WINFO returns 0 when it enables or disables pop-up events in the window. Use the aux-info argument to specify whether events are to be enabled or disabled.
WINFO returns the current column on which the window starts.
WINFO returns the number of user-defined icons available under the user's host operating system.
WINFO returns the width (in pixels) of the font used in the SAS windowing environment.
WINFO returns the horizontal location (in pixels) of the most recent mouse event.
WINFO returns the height (in pixels) of the font used in the SAS windowing environment.
WINFO returns the vertical location (in pixels) of the most recent mouse event.
Example |
Store the current size of the window, and then resize it back to its original size:
sr=winfo('startrow'); sc=winfo('startcol'); nr=winfo('numrows'); nc=winfo('numcols'); call display('top half'); call wdef(sr,sc,nr,nc);
See Also |
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.