(LOGO.JPG) Python for OpenVMS

(go to: table of contents, index, list of vms_smg, prev: PREV, next: NEXT)


UNPASTE_VIRTUAL_DISPLAY - Remove a Virtual Display

Remove virtual display from pasteboard.

Format:

    status = vms_smg.unpaste_virtual_display \
             (display_id, pasteboard_id)
Returns:
status
Condition code as returned from SMG$PASTE_VIRTUAL_DISPLAY. Either SS$_NORMAL or SMG$_BATWAS_ON are returned here - all other codes produce a Python exception. (The latter code is not mentioned in the documentation of OpenVMS VAX V6.1).
Arguments:
display_id
Virtual display to be removed.
pasteboard_id
Pasteboard from which the virtual display is to be removed
Examples:
>>> import vms_smg
>>> import vms_smgdef

>>> # create a new DECwindows terminal using SMG
>>> status, pasteboard_id, number_of_pasteboard_rows, \
... number_of_pasteboard_columns, type_of_terminal,   \
... device_name = vms_smg.create_pasteboard           \
...   (None, vms_smgdef.SMG_M_WORKSTATION)
>>>

>>> # create a virtual display
>>> status, display_id = vms_smg.create_virtual_display \
...         (5, 10, vms_smgdef.SMG_M_BORDER, None, None)
>>>

>>> # paste the virtual display
>>> status = vms_smg.paste_virtual_display \
...          (display_id, pasteboard_id, 3, 5, None)
>>>
The result can be seen in the examples section of vms_smg.paste_virtual_display
>>> # unpaste this display

>>> status = vms_smg.unpaste_virtual_display \
...          (display_id, pasteboard_id)
>>>
The screen is empty, again.

>>> # trying to unpaste an unpasted virtual display is an error
>>> status = vms_smg.unpaste_virtual_display \
...          (display_id, pasteboard_id)
Traceback (innermost last):
  File "<stdin>", line 1, in ?
vms_smg.error: (1213044, '%SMG-F-NOTPASTED, given display is not\
 pasted to given pasteboard')
>>>
----------------------------------------

>>> status = vms_smg.unpaste_virtual_display \
...          (display_id, 299)
Traceback (innermost last):
  File "<stdin>", line 1, in ?
vms_smg.error: (1212964, '%SMG-F-INVPAS_ID, invalid pasteboard-id')
>>>

>>> status = vms_smg.unpaste_virtual_display \
...          (99, pasteboard_id)
Traceback (innermost last):
  File "<stdin>", line 1, in ?
vms_smg.error: (1212956, '%SMG-F-INVDIS_ID, invalid display-id')
>>>

(go to: table of contents, index, list of vms_smg, prev: PREV, next: NEXT)

03-JUL-2000 ZE.