Working in the SAS Windowing Environment |
Definition of X Window System |
The X Window System is a networked windowing system. If several machines are on a network, you can run an X server that, in turn, serves X applications (as clients) to all the other machines in the network.
X Window Managers |
Window managers are X clients that enable you to manage the windows on a display by moving, resizing, and minimizing the windows. The Motif interface to SAS can be used with any window manager that is compliant with the Inter-Client Communication Conventions Manual (ICCCM). Vendors provide at least one window manager with the X Window System environment.
All window managers perform the same basic functions, but they differ in their style and in their advanced functions. The appearance and function of the interface to SAS depends to some extent on your X window manager. Most window managers provide some kind of frame around a window. The window manager also governs the placement, sizing, stacking, and appearance of windows, as well as their interaction with the keyboard. The basics of interacting with SAS are the same for all window managers: opening menus, moving windows, responding to dialog boxes, dragging text, and so on.
SAS Window Session ID |
When you run SAS on an X workstation, SAS shares the display with other X applications, including other SAS sessions. To enable you to distinguish between different applications and SAS sessions, SAS generates a SAS window session ID for each session by appending a number to the application name, which, by default, is SAS . This session ID appears in the window title bar for each SAS window and in the window icon title. The SAS sessions are assigned sequentially. Your first SAS session is not assigned a number, so the session ID is SAS ; your second SAS session is assigned the session ID SAS2 , and so on. Although the default application name is SAS , you can use the -name parameter to the XRESOURCES system option to change the instance name. The instance name can be up to six characters long.
You can specify the XRESOURCES option with one of the following commands:
sas92/name=sessionname
sas92/XRES="-name sessionname"
Workspace and Gravity in a SAS Session |
When you use SAS on an X workstation, the display can be shared by many concurrent applications. When SAS windows from different sessions and windows from other applications appear on the display, the display can become cluttered. To help alleviate this problem, the windows for a SAS session first appear within an application workspace (AWS). The AWS defines a rectangular region that represents a virtual display in which SAS windows are initially created. SAS attempts to position the AWS in relation to the upper-left corner of your display. In other words, the workspace gravitates toward a certain direction (session gravity) on the display. Some window manager configurations might override the placement that SAS has chosen for a window.
If you issue windowing commands or execute SAS procedures that create new SAS windows, the same rules of initial position and size apply to these windows: they are initially placed in the SAS AWS. You can use the WSAVE command to save the current window positions (or geometry). For details, see Customizing Session Workspace, Session Gravity, and Window Sizes under OpenVMS.
Window Types |
SAS uses primary and interior windows. Some SAS applications consist of one or more primary windows controlled by the X window manager, in addition to the interior windows controlled by SAS. The SAS windowing environment primary windows, as well as most SAS application windows, initially appear as top-level windows. Top-level windows interact directly with the X window manager. They have a full title bar along with other window manager decorations. You can manipulate them individually once they appear on the display.
Interior windows behave differently than primary windows. SAS/ASSIST software is an example of an application with interior windows. Interior windows are contained within container windows, which might be primary windows. The following display shows an interior window in SAS/ASSIST software.
SAS provides some degree of window management for interior windows. Specifically, interior windows have the following sizing and movement capabilities:
You can move interior windows by clicking the left mouse button on the interior window title bar and dragging the window to the new location. If the destination of the interior window is outside the bounds of the container window, the container window changes based on the value of the SAS.awsResizePolicy resource. (The space within the container window is the application workspace, which is described in Workspace and Gravity in a SAS Session.) For more information, see Overview of X Resources.
Interior windows cannot be minimized individually. Clicking on the container window icon button minimizes the container window and its interior windows.
A push-to-back button (the small overlapping squares in the upper-right corner) is available with interior windows. However, you cannot push an active window behind an inactive window.
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.