Skip to main content

ScrollPos Property

The scrollbar positions.

Definition​

Property "OLE.ScrollPos" as Record

Values​

This property has the following record structure:

PosNameTypeDescriptionDefault
<1>HorizontalIntegerThe horizontal scrollbar position0
<2>VerticalIntegerThe vertical scrollbar position0

Remarks​

The ScrollPos property gets and sets the scroll bar positions. Set this property to programmatically scroll the image.

info

The ScrollPos property only works so long as the Layout property is set to "Pan".

Example​

// Get the current scroll position
ScrollPos = Get_Property(@Window:".OLE_PICTURE", "OLE.ScrollPos")

// Scroll to position 10, 10
Set_Property(@Window:".OLE_PICTURE", "OLE.ScrollPos", 10:@FM:10)

See Also​

Layout