(go to: table of contents, index, list of vms_smg, prev: CHECK_FOR_OCCLUSION, next: COPY_VIRTUAL_DISPLAY)
Format:
CONTROL_MODE - Control mode
Controls the pasteboard's mode.
old_mode = vms_smg.control_mode \
(pasteboard_id, [new_mode], [buffer_size])
Returns:
Arguments:
Examples:
(go to: table of contents,
index, list of vms_smg,
prev: CHECK_FOR_OCCLUSION,
next: COPY_VIRTUAL_DISPLAY)
>>> import vms_smg
>>> import vms_smgdef
>>> # create a pasteboard
>>> # note: unlike many other examples this one does not use
>>> # a separate DECterm.
>>> # You should put these commands in a script for testing.
>>> status, pasteboard_id, number_of_pasteboard_rows, \
... number_of_pasteboard_columns, type_of_terminal, \
... device_name = vms_smg.create_pasteboard (None)
>>>
>>> # 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)
>>>
>>> old_mode = vms_smg.control_mode (pasteboard_id)
>>> print old_mode
18
>>> print vms_smgdef.SMG_M_MINUPD
2
>>> print vms_smgdef.SMG_M_PROTECT
16
>>>
>>> # if Python is terminated here without using
>>> # vms_smg.delete_pasteboard, SMG will not
>>> # clear the screen
>>>
>>>
>>> new_mode = old_mode | vms_smgdef.SMG_M_CLEAR_SCREEN
>>> old_mode = vms_smg.control_mode (pasteboard_id, new_mode)
>>>
>>> # if Python is terminated here without using
>>> # vms_smg.delete_pasteboard, SMG will
>>> # clear the screen