(go to: table of contents, index, list of vms_smg, prev: GET_PASTEBOARD_ATTRIBUTES, next: NEXT)
Format:
GET_PASTING_INFO - Return Pasting Information
Return the row and column if the specified virtual display is pasted.
flags, pasteboard_row, pasteboard_column = \
vms_smg.get_pasting_info (display_id, pasteboard_id)
Returns:
Arguments:
Examples:
(go to: table of contents,
index, list of vms_smg,
prev: GET_PASTEBOARD_ATTRIBUTES,
next: NEXT)
>>> 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)
>>>
>>> # 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)
>>>
>>> # check virtual display 1
>>> flags, pasteboard_row, pasteboard_column = \
... vms_smg.get_pasting_info (vtdpy1, pasteboard_id)
>>> print flags, vms_smgdef.SMG_M_DISPLAY_PASTED
1 1
>>> print pasteboard_row, pasteboard_column
3 5
>>>
>>> # unpaste virtual display 2
>>> status = vms_smg.unpaste_virtual_display \
... (vtdpy2, pasteboard_id)
>>>
>>> print status # 1 = SS$_NORMAL
1
>>>
>>> # get info
>>> flags, pasteboard_row, pasteboard_column = \
... vms_smg.get_pasting_info (vtdpy2, pasteboard_id)
>>> print flags, vms_smgdef.SMG_M_DISPLAY_PASTED
0 1
>>> print pasteboard_row, pasteboard_column
0 0
>>>