Scroll Method


8.7C, PLBCMP GUI Only

 

The Scroll method moves the text vertically in a multiline EDITTEXT or RICHEDITTEXT object. The method uses the following format:

 

 

[label]

{object}.Scroll

[GIVING {return}] USING [*Action=]{action}

 

Where:

label

Optional. A Program Execution Label.

object

Required. An EDITTEXT or RICHEDITTEXT object that is accessed.

return

Optional. A Numeric Variable that indicates the success or failure of the method.

action

Required. A decimal number or Numeric Variable that specifies the action to perform.

Flags Affected: EOS, OVER, ZERO

Note the following:

  1. The {action} parameter must be one of the following:

  2.  

    Value

    Keyword

    Scrolls the text ...

    0

    $LineUp

    up one line

    1

    $LineDown

    down one line

    2

    $PageUp

    up one page

    3

    $PageDown

    down one page

 

  1. The result is zero (0) if the scroll fails.

  2. If the value returned is zero, the ZERO condition flag is set.

  3. The OVER and EOS Condition Flags are always cleared.

  4. When using the PL/B Web Server, this method is not supported.

 

 

See Also: Method Syntax, EDITTEXT Methods, RICHEDITTEXT Methods

 



PL/B Language Reference SaveFile Method (RICHEDITTEXT) ScrollToCaret Method