DoMakeItemFirstVisible - TreeView
Forces TreeView to display an item in its visible area and attempts to make it the first visible item
Type: Procedure
Parameters
| Parameter | Type | Description |
|---|---|---|
| hItem | Handle | Item handle |
Syntax
Procedure DoMakeItemFirstVisible Handle hItem
Call Example
Send DoMakeItemFirstVisible hItem
Description
Calling DoMakeItemFirstVisible forces an item to be displayed inside the TreeView control and attempts to make it the first visible item (which may or may not be possible). If necessary, the control will scroll up or down and parent items will be expanded to ensure the item becomes visible.
Sample
This sample shows how to make a specific item in the first visible item at the top of TreeView oTreeView1
Procedure MyCustomMethod Handle hItem
Send DoMakeItemFirstVisible of oTreeView1 hItem
End_Procedure
See Also