(go to: table of contents, index, list of vms_smg, prev: CHANGE_VIEWPORT, next: CHECK_FOR_OCCLUSION)
Format:
None
Arguments:
Notice that the display is at the same location, but its dimensions have
changed and it now has a block border.
CHANGE_VIRTUAL_DISPLAY - Change Virtual Display
Change characteristics (dimensions, border, video rendition) of a virtual
display. Use
vms_smg.repaste_virtual_display()
to change the location and pasting order of the display within the pasteboard.
Use
vms_smg.move_virtual_display()
to change the location, but keep the pasting order.
vms_smg.change_virtual_display (display_id, \
[number_of_rows], [number_of_columns], \
[display_attributes], [video_attributes], \
[character_set])
Returns:
Examples:
(go to: table of contents,
index, list of vms_smg,
prev: CHANGE_VIEWPORT,
next: CHECK_FOR_OCCLUSION)
>>> 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)
>>>
>>> # CHANGE the virtual display
>>> vms_smg.change_virtual_display \
... (display_id, 7, 5, vms_smgdef.SMG_M_BLOCK_BORDER)
>>>