Scrolls an item into view.

Syntax

rv = Send_Message(Ctrl, "OLE.EnsureVisible", Group, Item)

Parameters

ParameterDescription
GroupIndex to an existing group
ItemIndex to an existing item

Remarks

The EnsureVisible method provides a way to programmatically scroll an item into view. The Group parameter is an index to an existing group and the Item parameter is an index to an existing Item within that group. Pass -1 if you want to refer to the last group or item.

Example

// Scroll the 10th item of the first group into view 
Send_Message(@Window:".OLE_SHORTCUTBAR", "OLE.EnsureVisible", 1, 10) 

// Scroll the last item of the last row into view 
Send_Message(@Window:".OLE_SHORTCUTBAR", "OLE.EnsureVisible", -1, -1)
  • No labels