Control - ScrollTop Property

Top position of a vertically scrolled child control relative to its parent control

Member of Control (PRIM_CTRL)

Data Type - Integer


The ScrollTop property returns the position of the control relative to its parent's upper boundary in pixels.
Unlike the Top property which doesn't change when the parent pane is scrolled horizontally, ScrollTop is continually updated when a scroll bar is moved.
A negative value means that the control is above the parent upper boundary, while a positive value means it's below.

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020