Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

DspRichTextScroll

  • Last UpdatedJul 18, 2023
  • 1 minute read

Scrolls the contents of the rich text object displayed at nAN, in the direction given in direction, by the number of lines/units given in amount. Remember that the height of a line varies according to the font used, therefore if you need to scroll absolute distances, it might be advisable to use the DspRichTextPgScroll function.

Syntax

DspRichTextScroll(nAN, iDirection, iAmount)

nAN:

The reference AN for the rich text object.

iDirection:

The direction in which you want to scroll each time this function is run. You can choose from the following:

1 - Left

2 - Right

3 - Up

4 - Down

8 - Scroll to top

16 - Scroll to bottom

iAmount:

The amount by which you would like to scroll each time this function is run. Enter the number of lines (for a vertical direction) or units (for a horizontal direction) by which you would like to scroll.

Return Value

0 if successful, otherwise an error is returned.

PageRichTextFile, DspRichTextEdit, DspRichTextPgScroll

Example

DspRichTextScroll(25,4,8);
DspRichTextScroll(423,2,1);

See Also

Display Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in