Navigation:  thinBasic Modules > UI (User Interface) > Dedicated Control Functions > TreeView Control >

TreeView_SetExpanded

Previous pageReturn to chapter overviewNext page

 

Description

 

The expanded attribute for the data item specified by hItem is set based upon the value of the ExpandFlag parameter.

If ExpandFlag is %TRUE, the item is displayed in expanded format, with its child items visible. If ExpandFlag is %FALSE, the item is displayed in collapsed format.

 

Syntax

 

Treeview_SetExpanded(hWnd, ctrlID, hItem, ExpandFlag)

 

Returns

 

None

 

Parameters

 

Name

Type

Optional

Meaning

hWnd

Number

No

Handle of the dialog containing the control

ctrlID

Number

No

Control identifier assigned to the control during CONTROL ADD ...

hItem

Number

No

Handle of a Treeview item, used to uniquely identify the item

ExpandFlag

Number

No

%TRUE or %FALSE

 

Remarks

 

Restrictions

 

See also

 

Examples