(LOGO.JPG) Python for OpenVMS

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


REMOVE_LINE - Remove a Line from a Virtual Display

Remove a line from a specified virtual display that was drawn with the vms_smg.draw_line() or vms_smg.draw_rectangle() routines.

Format:

    None = vms_smg.remove_line (display_id, \
                  start_row, start_column,  \
                  end_row, end_column)
Returns:

None

Arguments:

display_id
Virtual Display from which to remove the line.
start_row
The row number at which to begin removing the line.
start_column
The column number at which to begin removing the line.
end_row
The row number at which to begin removing the line.
end_column
The column number at which to begin removing the line.
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)
>>>

>>> # draw on virtual display
>>> vms_smg.draw_rectangle (vtdpy1, 1, 1, 4, 4)
>>> vms_smg.draw_rectangle (vtdpy1, 2, 2, 4, 5)
>>>

Screen layout, file: VMS_SMG_020.JPG

(picture VMS_SMG_020.JPG)

>>> # remove a single line
>>> vms_smg.remove_line (vtdpy1, 1, 4, 4, 4)
>>>

Screen layout, file: VMS_SMG_047.JPG

(picture VMS_SMG_047.JPG)


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

11-SEP-2000 ZE.