wxTreeListCtrl
Implements methods from the following classes
wxWindow
Methods
wxTreeListCtrl
Full constructing, creating the object and its window.
AppendColumn
Column methods.
AppendItem
Adding and removing items.
AreAllChildrenInState
Return true if all children of the given item are in the specified state.
AssignImageList
Sets the image list and gives its ownership to the control.
CheckItem
Checkbox handling.
CheckItemRecursively
Change the checked state of the given item and all its children.
ClearColumns
Delete all columns.
Collapse
Collapse the given tree branch.
Create
Create the control window.
DeleteAllItems
Delete all tree items.
DeleteColumn
Delete the column with the given index.
DeleteItem
Delete the specified item.
Expand
Expanding and collapsing tree branches.
GetCheckedState
Return the checked state of the item.
GetColumnCount
Return the total number of columns.
GetColumnWidth
Get the current width of the given column in pixels.
GetDataView
Return the view part of this control as wxDataViewCtrl.
GetFirstChild
Return the first child of the given item.
GetFirstItem
Return the first item in the tree.
GetItemParent
Return the parent of the given item.
GetItemText
Items attributes.
GetNextItem
Get item after the given one in the depth-first tree-traversal order.
GetNextSibling
Return the next sibling of the given item.
GetRootItem
Methods for the tree navigation.
GetSelection
Selection methods.
GetSortColumn
Return the column currently used for sorting, if any.
GetView
View window.
InsertItem
Insert a new item into the tree.
IsExpanded
Return whether the given item is expanded.
IsSelected
Return true if the item is selected.
PrependItem
Same as InsertItem() with wxTLI_FIRST.
Select
Select the given item.
SelectAll
Select all the control items.
SetColumnWidth
Change the width of the given column.
SetImageList
Sets the image list.
SetItemData
Set the data associated with the given item.
SetItemImage
Set the images for the given item.
SetItemText
Set the text of the first column of the given item.
SetSortColumn
Sorting.
UncheckItem
Uncheck the given item.
Unselect
Deselect the given item.
UnselectAll
Deselect all the control items.
UpdateItemParentStateRecursively
Update the state of the parent item to reflect the checked state of its children.
WidthFor
Get the width appropriate for showing the given text.
Static Methods
wxTreeListCtrl
wxTreeListCtrl
(
wxWindow
&
$parent
,
integer
$id
,
wxPoint
$pos
=
wxDefaultPosition
,
wxSize
$size
=
wxDefaultSize
,
integer
$style
=
wxTL_DEFAULT_STYLE
,
string
$name
=
wxTreeListCtrlNameStr
)
Full constructing, creating the object and its window.
wxTreeListCtrl
( )
Default constructor, call Create() later.
AppendColumn
integer
AppendColumn
(
string
$title
,
integer
$width
=
wxCOL_WIDTH_AUTOSIZE
,
wxAlignment
$align
=
wxALIGN_LEFT
,
integer
$flags
=
wxCOL_RESIZABLE
)
Column methods.
AppendItem
wxTreeListItem
AppendItem
(
wxTreeListItem
$parent
,
string
$text
,
integer
$imageClosed
=
NO_IMAGE
,
integer
$imageOpened
=
NO_IMAGE
,
wxClientData
&
$data
=
NULL
)
Adding and removing items.
AreAllChildrenInState
bool
AreAllChildrenInState
(
wxTreeListItem
$item
,
wxCheckBoxState
$state
)
Return true if all children of the given item are in the specified state.
AssignImageList
AssignImageList
(
wxImageList
&
$imageList
)
Sets the image list and gives its ownership to the control.
CheckItem
CheckItem
(
wxTreeListItem
$item
,
wxCheckBoxState
$state
=
wxCHK_CHECKED
)
Checkbox handling.
CheckItemRecursively
CheckItemRecursively
(
wxTreeListItem
$item
,
wxCheckBoxState
$state
=
wxCHK_CHECKED
)
Change the checked state of the given item and all its children.
ClearColumns
ClearColumns
( )
Delete all columns.
Collapse
Collapse
(
wxTreeListItem
$item
)
Collapse the given tree branch.
Create
bool
Create
(
wxWindow
&
$parent
,
integer
$id
,
wxPoint
$pos
=
wxDefaultPosition
,
wxSize
$size
=
wxDefaultSize
,
integer
$style
=
wxTL_DEFAULT_STYLE
,
string
$name
=
wxTreeListCtrlNameStr
)
Create the control window.
DeleteAllItems
DeleteAllItems
( )
Delete all tree items.
DeleteColumn
bool
DeleteColumn
(
integer
$col
)
Delete the column with the given index.
DeleteItem
DeleteItem
(
wxTreeListItem
$item
)
Delete the specified item.
Expand
Expand
(
wxTreeListItem
$item
)
Expanding and collapsing tree branches.
GetCheckedState
wxCheckBoxState
GetCheckedState
(
wxTreeListItem
$item
)
Return the checked state of the item.
GetColumnCount
integer
GetColumnCount
( )
Return the total number of columns.
GetColumnWidth
integer
GetColumnWidth
(
integer
$col
)
Get the current width of the given column in pixels.
GetDataView
wxDataViewCtrl
&
GetDataView
( )
Return the view part of this control as wxDataViewCtrl.
GetFirstChild
wxTreeListItem
GetFirstChild
(
wxTreeListItem
$item
)
Return the first child of the given item.
GetFirstItem
wxTreeListItem
GetFirstItem
( )
Return the first item in the tree.
GetItemParent
wxTreeListItem
GetItemParent
(
wxTreeListItem
$item
)
Return the parent of the given item.
GetItemText
string
GetItemText
(
wxTreeListItem
$item
,
integer
$col
)
Items attributes.
GetNextItem
wxTreeListItem
GetNextItem
(
wxTreeListItem
$item
)
Get item after the given one in the depth-first tree-traversal order.
GetNextSibling
wxTreeListItem
GetNextSibling
(
wxTreeListItem
$item
)
Return the next sibling of the given item.
GetRootItem
wxTreeListItem
GetRootItem
( )
Methods for the tree navigation.
GetSelection
wxTreeListItem
GetSelection
( )
Selection methods.
GetSortColumn
bool
GetSortColumn
(
integer &
$col
,
bool &
$ascendingOrder
=
NULL
)
Return the column currently used for sorting, if any.
GetView
wxWindow
&
GetView
( )
View window.
InsertItem
wxTreeListItem
InsertItem
(
wxTreeListItem
$parent
,
wxTreeListItem
$previous
,
string
$text
,
integer
$imageClosed
=
NO_IMAGE
,
integer
$imageOpened
=
NO_IMAGE
,
wxClientData
&
$data
=
NULL
)
Insert a new item into the tree.
IsExpanded
bool
IsExpanded
(
wxTreeListItem
$item
)
Return whether the given item is expanded.
IsSelected
bool
IsSelected
(
wxTreeListItem
$item
)
Return true if the item is selected.
PrependItem
wxTreeListItem
PrependItem
(
wxTreeListItem
$parent
,
string
$text
,
integer
$imageClosed
=
NO_IMAGE
,
integer
$imageOpened
=
NO_IMAGE
,
wxClientData
&
$data
=
NULL
)
Same as InsertItem() with wxTLI_FIRST.
Select
Select
(
wxTreeListItem
$item
)
Select the given item.
SelectAll
SelectAll
( )
Select all the control items.
SetColumnWidth
SetColumnWidth
(
integer
$col
,
integer
$width
)
Change the width of the given column.
SetImageList
SetImageList
(
wxImageList
&
$imageList
)
Sets the image list.
SetItemData
SetItemData
(
wxTreeListItem
$item
,
wxClientData
&
$data
)
Set the data associated with the given item.
SetItemImage
SetItemImage
(
wxTreeListItem
$item
,
integer
$closed
,
integer
$opened
=
NO_IMAGE
)
Set the images for the given item.
SetItemText
SetItemText
(
wxTreeListItem
$item
,
string
$text
)
Set the text of the first column of the given item.
SetItemText
(
wxTreeListItem
$item
,
integer
$col
,
string
$text
)
Set the text of the specified column of the given item.
SetSortColumn
SetSortColumn
(
integer
$col
,
bool
$ascendingOrder
=
true
)
Sorting.
UncheckItem
UncheckItem
(
wxTreeListItem
$item
)
Uncheck the given item.
Unselect
Unselect
(
wxTreeListItem
$item
)
Deselect the given item.
UnselectAll
UnselectAll
( )
Deselect all the control items.
UpdateItemParentStateRecursively
UpdateItemParentStateRecursively
(
wxTreeListItem
$item
)
Update the state of the parent item to reflect the checked state of its children.
WidthFor
integer
WidthFor
(
string
$text
)
Get the width appropriate for showing the given text.