ExpandItem
PowerScript function
Description
Expands a specified item.
Applies to
TreeView controls
Syntax
1 |
treeviewname.ExpandItem ( itemhandle ) |
Argument |
Description |
---|---|
treeviewname |
The TreeView control in which you want to expand an |
itemhandle |
The handle of the item you want to |
Return value
Integer.
Returns 1 if it succeeds and -1 if an error occurs.
Usage
ExpandItem expands only a single item. To expand a specified item
including its children, use ExpandAll.
Examples
This example expands the current level of a TreeView:
1 2 3 |
long ll_tvi ll_tvi = tv_list.FindItem(CurrentTreeItem! , 0) tv_list.ExpandItem(ll_tvi) |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest