(LOGO.JPG) Python for OpenVMS

(go to: table of contents, index, list of vms_smg, prev: PASTE_VIRTUAL_DISPLAY, next: PRINT_PASTEBOARD)


POP_VIRTUAL_DISPLAY - Delete a Series of Virtual Displays

Delete the specified virtual display and all displays that were pasted on the specified pasteboard on top of the specified virtual display.

Format:

    None = vms_smg.pop_virtual_display (display_id, pasteboard_id)
Returns:

None

Arguments:

display_id
Identifier of the lowest (first) virtual display to be deleted.
pasteboard_id
Identifier of the pasteboard on which the display deletions take place.
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 virtual display 1
>>> status, vtdpy1 = vms_smg.create_virtual_display \
...         (5, 10, vms_smgdef.SMG_M_BORDER, None, None)
>>>

>>> # write to virtual display 1
>>> status = vms_smg.put_chars (vtdpy1, 'V1', 0, 0)
>>>

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

>>> # write to virtual display 2
>>> status = vms_smg.put_chars (vtdpy2, 'V2', 0, 0)
>>>

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

>>> # write to virtual display 3
>>> status = vms_smg.put_chars (vtdpy3, 'V3', 0, 0)
>>>

>>> # paste virtual display 1
>>> status = vms_smg.paste_virtual_display \
...          (vtdpy1, pasteboard_id, 3, 5, None)
>>>

>>> # paste virtual display 2
>>> status = vms_smg.paste_virtual_display \
...          (vtdpy2, pasteboard_id, 5, 7, None)
>>>

>>> # paste virtual display 3
>>> status = vms_smg.paste_virtual_display \
...          (vtdpy3, pasteboard_id, 7, 9, None)
>>>

Screen layout, file: VMS_SMG_032.JPG

(picture VMS_SMG_032.JPG)

>>> # pop virtual display 2 - (will also unpaste display 3)
>>> vms_smg.pop_virtual_display (vtdpy2, pasteboard_id)
>>>

Screen layout, file: VMS_SMG_033.JPG

(picture VMS_SMG_033.JPG)

Notice that the cursor is still at the old position.


(go to: table of contents, index, list of vms_smg, prev: PASTE_VIRTUAL_DISPLAY, next: PRINT_PASTEBOARD)

10-SEP-2000 ZE.