ScrollPos Property
The scrollbar positions.
Definition
Property "OLE.ScrollPos" as Record
Values
This property has the following record structure:
| Pos | Name | Type | Description | Default |
|---|---|---|---|---|
| <1> | Horizontal | Integer | The horizontal scrollbar position | 0 |
| <2> | Vertical | Integer | The vertical scrollbar position | 0 |
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)