Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

VAXTPU MODIFY_RANGE — VMS 5.2

 MODIFY_RANGE

 Allows a VAXTPU application to change the starting mark, ending mark, or
 video attribute of a range.

 Syntax

    MODIFY_RANGE (range, [start_mark, end_mark] [video_attribute])

 Parameters

    range                The range to be modified.

    start_mark           The starting mark for the range.

    end_mark             The ending mark for the range.

    video_attribute      A keyword specifying the new video attribute for
                         the range.  By default, the attribute is not
                         modified.  You can use the keywords NONE, REVERSE,
                         UNDERLINE, BLINK, or BOLD to specify this
                         parameter.


 Examples

    The following statement sets the video attribute of the range assigned
    to the variable "this_range" to BLINK:

    MODIFY_RANGE (this_range, , ,BLINK);

    The following code fragment creates a range between the editing point
    and the pointer cursor location.  At a later point in the program,
    after which the user might have moved the pointer cursor, the code
    fragment modifies the range to reflect the new pointer cursor location.

    begin_mark := MARK (BOLD);
    POSITION (MOUSE);
    finish_mark := MARK (BOLD);
    this_range := CREATE_RANGE (begin_mark, finish_mark, BOLD);
    !  .
    !  .  (User may have moved mouse)
    !  .
    POSITION (MOUSE);
    new_mark := MARK (BOLD);
    IF new_mark <> finish_mark
    THEN
        MODIFY_RANGE (this_range, begin_mark, new_mark, BOLD);
    ENDIF;

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026