The scrollbar positions.
Set_Property(OLECtrlEntID, "OLE.ScrollPos", Array) |
Array has the following structure:
Pos | Name | Type | Description | Default |
---|---|---|---|---|
<1> | Horizontal | Integer | The horizontal scrollbar position | 0 |
<2> | Vertical | Integer | The vertical scrollbar position | 0 |
The ScrollPos property gets and sets the scroll bar positions. Set this property to programmatically scroll the image.
The ScrollPos property only works so long as the Layout property is set to "Pan".
// 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) |