Tries to position a specified item at the top of the visible portion of the control, expanding items or scrolling the treeview control if necessary.
trObj Do 'SetFirstVisible' inx
where inx is an integer scalar, the index number of the item to position at the top of the visible portion of the treeview. A negative value indicates an item relative to the final item in the control, so a value of ¯1 ensures that the last item is visible.
The shy result is an integer scalar, the index of the number of the item that was previously at the top of the visible portion of the control.
It is not possible to scroll the treeview under program control such that there is empty space between the last item and the bottom of the treeview. This means that the topmost item in the control can only ever be nItems-nVisible where nItems is the total number of items in the control and nVisible is the number of items that are visible (see GetVisibleCount).
Use the ShowItem if it is necessary only to ensure that a specified item lies within the visible portion of the control.