TreeView – ShowItem Function

Ensures that a specified item is visible in the control, expanding items or scrolling the treeview control if necessary.

  trObj ’Do 'ShowItem' inx

where inx is an integer scalar, the index number of the item to scroll into view if it is not currently visible to the user. 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 a Boolean scalar 1 if the control was scrolled to ensure the specified item was visible, 0 otherwise.

Use the SetFirstVisible if you must try to position a specified item at the top of the visible portion of the control.



Continue to: Tabbed Subform (TSF)
© Copyright Causeway Graphical Systems Ltd 2003