(LOGO.JPG) Python for OpenVMS

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


SET_DISPLAY_SCROLL_REGION - Create Display Scrolling Region

Create a virtual scrolling region in a virtual display. Explicit scrolling can be done with the vms_smg.scroll_display_area() routine.

Format:

    None = vms_smg.set_display_scroll_region \
                  (display_id, [start_row], [end_row])
Returns:

None

Arguments:

display_id
Virtual display in which scrolling takes place.
start_row
The first line of the virtual scrolling region.
end_row
The last line of the virtual scrolling region.
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
>>> status, vtdpy1 = vms_smg.create_virtual_display \
...         (5, 10, vms_smgdef.SMG_M_BORDER, None, None)
>>>

>>> # paste virtual display
>>> status = vms_smg.paste_virtual_display \
...          (vtdpy1, pasteboard_id, 3, 5, None)
>>>
>>> # write to virtual display
>>> status = vms_smg.put_chars (vtdpy1, '1234567890', 1, 1)
>>> status = vms_smg.put_chars (vtdpy1, 'ABCDEFGHIJ', 2, 1)
>>> status = vms_smg.put_chars (vtdpy1, 'KLMNOPQRST', 3, 1)
>>> status = vms_smg.put_chars (vtdpy1, 'abcdefghij', 4, 1)
>>> status = vms_smg.put_chars (vtdpy1, 'klmnopqrst', 5, 1)
>>>

Screen layout, file: VMS_SMG_008.JPG

(picture VMS_SMG_008.JPG)

>>> # set a scrolling region
>>> vms_smg.set_display_scroll_region (vtdpy1, 2, 4)
>>>

>>> # change cursor position
>>> vms_smg.set_cursor_abs (vtdpy1, 3, 4)
>>>

>>> # put lines on virtual display
>>> status = vms_smg.put_line (vtdpy1, 'Line1Line1')
>>> status = vms_smg.put_line (vtdpy1, 'Line2Line2')
>>> status = vms_smg.put_line (vtdpy1, 'Line3Line3')
>>> status = vms_smg.put_line (vtdpy1, 'Line4Line4')
>>>

Screen layout, file: VMS_SMG_055.JPG

(picture VMS_SMG_055.JPG)


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

11-SEP-2000 ZE.