Version: 3.3.1
treelist.h File Reference

Classes

class  wxTreeListItem
 Unique identifier of an item in wxTreeListCtrl. More...
 
class  wxTreeListItemComparator
 Class defining sort order for the items in wxTreeListCtrl. More...
 
class  wxTreeListCtrl
 A control combining wxTreeCtrl and wxListCtrl features. More...
 
class  wxTreeListEvent
 Event generated by wxTreeListCtrl. More...
 

Macros

#define wxTreeListEventHandler(func)    wxEVENT_HANDLER_CAST(wxTreeListEventFunction, func)
 Type of wxTreeListEvent event handlers. More...
 

Typedefs

typedef wxVector< wxTreeListItemwxTreeListItems
 Container of multiple items. More...
 

Enumerations

enum  {
  wxTL_SINGLE = 0x0000 ,
  wxTL_MULTIPLE = 0x0001 ,
  wxTL_CHECKBOX = 0x0002 ,
  wxTL_3STATE = 0x0004 ,
  wxTL_USER_3STATE = 0x0008 ,
  wxTL_NO_HEADER = 0x0010 ,
  wxTL_DEFAULT_STYLE = wxTL_SINGLE
}
 wxTreeListCtrl styles. More...
 

Variables

const wxTreeListItem wxTLI_FIRST
 Special wxTreeListItem value meaning "insert before the first item". More...
 
const wxTreeListItem wxTLI_LAST
 Special wxTreeListItem value meaning "insert after the last item". More...
 
wxEventType wxEVT_TREELIST_SELECTION_CHANGED
 
wxEventType wxEVT_TREELIST_ITEM_EXPANDING
 
wxEventType wxEVT_TREELIST_ITEM_EXPANDED
 
wxEventType wxEVT_TREELIST_ITEM_CHECKED
 
wxEventType wxEVT_TREELIST_ITEM_ACTIVATED
 
wxEventType wxEVT_TREELIST_ITEM_CONTEXT_MENU
 
wxEventType wxEVT_TREELIST_COLUMN_SORTED
 

Macro Definition Documentation

◆ wxTreeListEventHandler

#define wxTreeListEventHandler (   func)     wxEVENT_HANDLER_CAST(wxTreeListEventFunction, func)

Type of wxTreeListEvent event handlers.

This macro should be used with wxEvtHandler::Connect() when connecting to wxTreeListCtrl events.

Typedef Documentation

◆ wxTreeListItems

typedef wxVector<wxTreeListItem> wxTreeListItems

Container of multiple items.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

wxTreeListCtrl styles.

Notice that using wxTL_USER_3STATE implies wxTL_3STATE and wxTL_3STATE in turn implies wxTL_CHECKBOX.

Enumerator
wxTL_SINGLE 

Only allow single selection (this is the default).

wxTL_MULTIPLE 

Allow multiple selections.

wxTL_CHECKBOX 

Show checkboxes in the first column.

Without any additional styles, checkboxes may be only in checked or unchecked state.

wxTL_3STATE 

Allow 3rd state in checkboxes.

Specifying this style turns on wxTL_CHECKBOX too.

Unless wxTL_USER_3STATE is also specified, the 3rd state ("undetermined") can only be set by the program but not by the user.

wxTL_USER_3STATE 

Allow user to set 3rd state in the checkboxes.

Specifying this style turns on wxTL_3STATE and wxTL_CHECKBOX too.

wxTL_NO_HEADER 

Don't show the column headers.

By default this control shows the column headers, using this class allows avoiding this and showing only the data.

Since
2.9.5
wxTL_DEFAULT_STYLE 

Style used by the control by default.

Variable Documentation

◆ wxEVT_TREELIST_COLUMN_SORTED

wxEventType wxEVT_TREELIST_COLUMN_SORTED

◆ wxEVT_TREELIST_ITEM_ACTIVATED

wxEventType wxEVT_TREELIST_ITEM_ACTIVATED

◆ wxEVT_TREELIST_ITEM_CHECKED

wxEventType wxEVT_TREELIST_ITEM_CHECKED

◆ wxEVT_TREELIST_ITEM_CONTEXT_MENU

wxEventType wxEVT_TREELIST_ITEM_CONTEXT_MENU

◆ wxEVT_TREELIST_ITEM_EXPANDED

wxEventType wxEVT_TREELIST_ITEM_EXPANDED

◆ wxEVT_TREELIST_ITEM_EXPANDING

wxEventType wxEVT_TREELIST_ITEM_EXPANDING

◆ wxEVT_TREELIST_SELECTION_CHANGED

wxEventType wxEVT_TREELIST_SELECTION_CHANGED

◆ wxTLI_FIRST

const wxTreeListItem wxTLI_FIRST
extern

Special wxTreeListItem value meaning "insert before the first item".

This value can be passed to wxTreeListCtrl::InsertItem() to achieve the same effect as calling wxTreeListCtrl::PrependItem().

◆ wxTLI_LAST

const wxTreeListItem wxTLI_LAST
extern

Special wxTreeListItem value meaning "insert after the last item".

This value can be passed to wxTreeListCtrl::InsertItem() to achieve the same effect as calling wxTreeListCtrl::AppendItem().