Next: Erase Screen Hide
Up: Viewport Manipulation Subprograms
Previous: Make a Viewport
This Subprogram may be used to define which already existing Viewport is to be
used for subsequent Output Requests.
Short Name Calling Sequence
STATUS = UIUSVP(VPRTID[,OLDVPT])
Long Name Calling Sequence
STATUS = UI_USE_VIEWPORT(...)
Input Arguments
VPRTID (Integer) Viewport ID
Output Arguments
OLDVPT (Integer) Old Viewport ID (Optional)
Function Value
UI__SUCCESS ) Success
UISUCC )
UI__NOT_INITIALIZED ) Package not Initialized
UININI )
UI__ILLEGAL_VIEWPORT ) Illegal Viewport ID
UIILVP )
Note:
- Function Value UI__ILLEGAL_VIEWPORT will result if the VPRTID Argument
does not refer to an already existing Viewport having the currently setup
Viewport Mode (Text or Graphics) defined.
- Whether the Text or Graphics Viewport corresponding to the specified
Viewport ID is used depends on the currently setup Viewport Mode.
- The Viewport Mode is defaulted to Text on initialisation of UIPACK. It may
be changed by calling UI_VIEWPORT_MODE and may be determined by calling
UI_INQUIRE_VIEWPORT_MODE.
- For a Text Viewport to be made visible it must be displayed via a call
to UI_DISPLAY_VIEWPORT.
- For a Graphics Viewport this Subprogram will setup both the Viewport
placement on the Screen and the World Coordinate System as specified at the
time of the UI_DEFINE_VIEWPORT request.
- The OLDVPT Argument is optional an, if present, will be set to the Viewport
ID of the Viewport in use prior to this call.
- The Viewport IDs for the Default Viewports created by UIPACK are defined
within the Parameter Definition File described in Appexdix A.3. They are:-
UIMENUVIEWPORT ) Menu Viewport
UIMENU )
UITITLEVIEWPORT ) Title Viewport
UITITL )
UIINPUTVIEWPORT ) Input Viewport
UIINPT )
UIMAINVIEWPORT ) Main (Help) Viewport
UIMAIN )
UIHELPVIEWPORT ) Help (Main) Viewport
UIHELP )
Liz Buckle
Fri Jan 13 17:49:20 CST 1995