scrollVertPos

Type: Integer

Availability: Read or write at run time only

The scrollVertPos property contains the position of the vertical scroll bar.

The units are pixels, except for a text box control where the vertical positions are text lines.

The scrollVertPos property applies to Form, Picture, TextBox, and JadeRichText controls. (Use the topIndex property to set vertical scroll positions for ListBox controls and the topRow and leftColumn properties to set the scroll positions for Table controls.)

If the scroll bar is not defined for the form or control, a value of zero (0) is returned, and setting the scrollVertPos property has no effect. Setting the value of the scrollVertPos property when the vertical scroll bar is defined scrolls the window to that vertical position relative to the minimum scroll range value. Setting this property to a value outside the scroll range results in an exception being raised.

The scrolled event is not generated as a result of setting a new scroll position.

For the JadeRichText control, the scrollVertPos property contains the vertical position in the virtual text space corresponding to the point displayed at the top of the control. The units are characters.

If the scroll bar is not defined for the control, the value of this property defaults to zero (0) and setting the scrollVertPos property has no effect.