1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %% Purpose: wxTreeCtrl documentation
4 %% Author: wxWidgets Team
8 %% Copyright: (c) wxWidgets Team
9 %% License: wxWindows license
10 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
12 \section{\class{wxTreeCtrl
}}\label{wxtreectrl
}
14 A tree control presents information as a hierarchy, with items that may be expanded
15 to show further items. Items in a tree control are referenced by wxTreeItemId handles,
16 which may be tested for validity by calling
\helpref{wxTreeItemId::IsOk
}{wxtreeitemidisok
}.
18 To intercept events from a tree control, use the event table macros described in
\helpref{wxTreeEvent
}{wxtreeevent
}.
20 \wxheading{Derived from
}
22 \helpref{wxControl
}{wxcontrol
}\\
23 \helpref{wxWindow
}{wxwindow
}\\
24 \helpref{wxEvtHandler
}{wxevthandler
}\\
25 \helpref{wxObject
}{wxobject
}
27 \wxheading{Include files
}
33 \helpref{wxCore
}{librarieslist
}
35 \wxheading{Window styles
}
38 \begin{twocollist
}\itemsep=
0pt
39 \twocolitem{\windowstyle{wxTR
\_EDIT\_LABELS}}{Use this style
40 if you wish the user to be able to edit labels in the tree control.
}
41 \twocolitem{\windowstyle{wxTR
\_NO\_BUTTONS}}{For convenience
42 to
document that no buttons are to be drawn.
}
43 \twocolitem{\windowstyle{wxTR
\_HAS\_BUTTONS}}{Use this style
44 to show + and - buttons to the left of parent items.
}
45 \twocolitem{\windowstyle{wxTR
\_NO\_LINES}}{Use this style
46 to hide vertical level connectors.
}
47 \twocolitem{\windowstyle{wxTR
\_FULL\_ROW\_HIGHLIGHT}}{Use this style to have the background
48 colour and the selection highlight extend over the entire horizontal
49 row of the tree control window. (This flag is ignored under Windows unless you
50 specify wxTR
\_NO\_LINES as well.)
}
51 \twocolitem{\windowstyle{wxTR
\_LINES\_AT\_ROOT}}{Use this style
52 to show lines between root nodes.
53 Only applicable if wxTR
\_HIDE\_ROOT is set and wxTR
\_NO\_LINES is not set.
}
54 \twocolitem{\windowstyle{wxTR
\_HIDE\_ROOT}}{Use this style
55 to suppress the display of the root node,
56 effectively causing the first-level nodes
57 to appear as a series of root nodes.
}
58 \twocolitem{\windowstyle{wxTR
\_ROW\_LINES}}{Use this style
59 to draw a contrasting border between displayed rows.
}
60 \twocolitem{\windowstyle{wxTR
\_HAS\_VARIABLE\_ROW\_HEIGHT}}{Use this style
61 to cause row heights to be just big enough to fit the content.
62 If not set, all rows use the largest row height.
63 The default is that this flag is unset.
65 \twocolitem{\windowstyle{wxTR
\_SINGLE}}{For convenience
66 to
document that only one item may be selected at a time.
67 Selecting another item causes the current selection, if any,
68 to be deselected. This is the default.
}
69 \twocolitem{\windowstyle{wxTR
\_MULTIPLE}}{Use this style
70 to allow a range of items to be selected.
71 If a second range is selected, the current range, if any, is deselected.
}
72 \twocolitem{\windowstyle{wxTR
\_DEFAULT\_STYLE}}{The set of flags that are
73 closest to the defaults for the native control for a particular toolkit.
}
76 See also
\helpref{window styles overview
}{windowstyles
}.
78 \wxheading{Event handling
}
80 To process input from a tree control, use these event handler macros to direct input to member
81 functions that take a
\helpref{wxTreeEvent
}{wxtreeevent
} argument.
84 \begin{twocollist
}\itemsep=
0pt
85 \twocolitem{{\bf EVT
\_TREE\_BEGIN\_DRAG(id, func)
}}{Begin dragging with the left mouse button.
}
86 \twocolitem{{\bf EVT
\_TREE\_BEGIN\_RDRAG(id, func)
}}{Begin dragging with the right mouse button.
}
87 \twocolitem{{\bf EVT
\_TREE\_END\_DRAG(id, func)
}}{End dragging with the left or right mouse button.
}
88 \twocolitem{{\bf EVT
\_TREE\_BEGIN\_LABEL\_EDIT(id, func)
}}{Begin editing a label. This can be prevented by calling
\helpref{Veto()
}{wxnotifyeventveto
}.
}
89 \twocolitem{{\bf EVT
\_TREE\_END\_LABEL\_EDIT(id, func)
}}{Finish editing a label. This can be prevented by calling
\helpref{Veto()
}{wxnotifyeventveto
}.
}
90 \twocolitem{{\bf EVT
\_TREE\_DELETE\_ITEM(id, func)
}}{Delete an item.
}
91 \twocolitem{{\bf EVT
\_TREE\_GET\_INFO(id, func)
}}{Request information from the application.
}
92 \twocolitem{{\bf EVT
\_TREE\_SET\_INFO(id, func)
}}{Information is being supplied.
}
93 \twocolitem{{\bf EVT
\_TREE\_ITEM\_ACTIVATED(id, func)
}}{The item has been activated, i.e. chosen by double clicking it with mouse or from keyboard
}
94 \twocolitem{{\bf EVT
\_TREE\_ITEM\_COLLAPSED(id, func)
}}{The item has been collapsed.
}
95 \twocolitem{{\bf EVT
\_TREE\_ITEM\_COLLAPSING(id, func)
}}{The item is being collapsed. This can be prevented by calling
\helpref{Veto()
}{wxnotifyeventveto
}.
}
96 \twocolitem{{\bf EVT
\_TREE\_ITEM\_EXPANDED(id, func)
}}{The item has been expanded.
}
97 \twocolitem{{\bf EVT
\_TREE\_ITEM\_EXPANDING(id, func)
}}{The item is being expanded. This can be prevented by calling
\helpref{Veto()
}{wxnotifyeventveto
}.
}
98 \twocolitem{{\bf EVT
\_TREE\_ITEM\_RIGHT\_CLICK(id, func)
}}{The user has clicked the item with the right mouse button.
}
99 \twocolitem{{\bf EVT
\_TREE\_ITEM\_MIDDLE\_CLICK(id, func)
}}{The user has clicked the item with the middle mouse button.
}
100 \twocolitem{{\bf EVT
\_TREE\_SEL\_CHANGED(id, func)
}}{Selection has changed.
}
101 \twocolitem{{\bf EVT
\_TREE\_SEL\_CHANGING(id, func)
}}{Selection is changing. This can be prevented by calling
\helpref{Veto()
}{wxnotifyeventveto
}.
}
102 \twocolitem{{\bf EVT
\_TREE\_KEY\_DOWN(id, func)
}}{A key has been pressed.
}
103 \twocolitem{{\bf EVT
\_TREE\_ITEM\_GETTOOLTIP(id, func)
}}{The opportunity to set the item tooltip
104 is being given to the application (call wxTreeEvent::SetToolTip). Windows only.
}
105 \twocolitem{{\bf EVT
\_TREE\_ITEM\_MENU(id, func)
}}{The context menu for the selected item has been requested, either by a right click or by using the menu key.
}
106 \twocolitem{{\bf EVT
\_TREE\_STATE\_IMAGE\_CLICK(id, func)
}}{The state image has been clicked. Windows only.
}
111 \helpref{wxTreeItemData
}{wxtreeitemdata
},
\helpref{wxTreeCtrl overview
}{wxtreectrloverview
},
\helpref{wxListBox
}{wxlistbox
},
\helpref{wxListCtrl
}{wxlistctrl
},
\rtfsp
112 \helpref{wxImageList
}{wximagelist
},
\helpref{wxTreeEvent
}{wxtreeevent
}
114 \wxheading{Win32 notes
}
116 wxTreeCtrl class uses the standard common treeview control under Win32
117 implemented in the system library
{\tt comctl32.dll
}. Some versions of this
118 library are known to have bugs with handling the tree control colours: the
119 usual symptom is that the expanded items leave black (or otherwise incorrectly
120 coloured) background behind them, especially for the controls using non-default background colour. The recommended solution is to upgrade the
{\tt comctl32.dll
}
121 to a newer version: see
122 \urlref{http://www.microsoft.com/downloads/release.asp?ReleaseID=
11916}{http://www.microsoft.com/downloads/release.asp?ReleaseID=
11916}.
124 \latexignore{\rtfignore{\wxheading{Members
}}}
127 \membersection{wxTreeCtrl::wxTreeCtrl
}\label{wxtreectrlconstr
}
129 \func{}{wxTreeCtrl
}{\void}
133 \func{}{wxTreeCtrl
}{\param{wxWindow*
}{ parent
},
\param{wxWindowID
}{ id
},
\rtfsp
134 \param{const wxPoint\&
}{ pos = wxDefaultPosition
},
\param{const wxSize\&
}{ size = wxDefaultSize
},
\rtfsp
135 \param{long
}{ style = wxTR
\_HAS\_BUTTONS},
\param{const wxValidator\&
}{validator = wxDefaultValidator
},
\param{const wxString\&
}{name = ``treeCtrl"
}}
137 Constructor, creating and showing a tree control.
139 \wxheading{Parameters
}
141 \docparam{parent
}{Parent window. Must not be
{\tt NULL
}.
}
143 \docparam{id
}{Window identifier. A value of -
1 indicates a default value.
}
145 \docparam{pos
}{Window position.
}
147 \docparam{size
}{Window size. If the default size (-
1, -
1) is specified then the window is sized
150 \docparam{style
}{Window style. See
\helpref{wxTreeCtrl
}{wxtreectrl
}.
}
152 \docparam{validator
}{Window validator.
}
154 \docparam{name
}{Window name.
}
158 \helpref{wxTreeCtrl::Create
}{wxtreectrlcreate
},
\helpref{wxValidator
}{wxvalidator
}
161 \membersection{wxTreeCtrl::
\destruct{wxTreeCtrl
}}\label{wxtreectrldtor
}
163 \func{void
}{\destruct{wxTreeCtrl
}}{\void}
165 Destructor, destroying the tree control.
168 \membersection{wxTreeCtrl::AddRoot
}\label{wxtreectrladdroot
}
170 \func{wxTreeItemId
}{AddRoot
}{\param{const wxString\&
}{ text
},
171 \param{int
}{ image = -
1},
\param{int
}{ selImage = -
1},
\param{wxTreeItemData*
}{ data =
{\tt NULL
}}}
173 Adds the root node to the tree, returning the new item.
175 The
{\it image
} and
{\it selImage
} parameters are an index within
176 the normal image list specifying the image to use for unselected and
177 selected items, respectively.
178 If
{\it image
} > -
1 and
{\it selImage
} is -
1, the same image is used for
179 both selected and unselected items.
182 \membersection{wxTreeCtrl::AppendItem
}\label{wxtreectrlappenditem
}
184 \func{wxTreeItemId
}{AppendItem
}{\param{const wxTreeItemId\&
}{parent
},
\param{const wxString\&
}{ text
},
185 \param{int
}{ image = -
1},
\param{int
}{ selImage = -
1},
\param{wxTreeItemData*
}{ data =
{\tt NULL
}}}
187 Appends an item to the end of the branch identified by
{\it parent
}, return a new item id.
189 The
{\it image
} and
{\it selImage
} parameters are an index within
190 the normal image list specifying the image to use for unselected and
191 selected items, respectively.
192 If
{\it image
} > -
1 and
{\it selImage
} is -
1, the same image is used for
193 both selected and unselected items.
196 \membersection{wxTreeCtrl::AssignButtonsImageList
}\label{wxtreectrlassignbuttonsimagelist
}
198 \func{void
}{AssignButtonsImageList
}{\param{wxImageList*
}{ imageList
}}
200 Sets the buttons image list. The button images assigned with this method will
201 be automatically deleted by wxTreeCtrl as appropriate
202 (i.e. it takes ownership of the list).
204 Setting or assigning the button image list enables the display of image buttons.
205 Once enabled, the only way to disable the display of button images is to set
206 the button image list to
{\tt NULL
}.
208 This function is only available in the generic version.
210 See also
\helpref{SetButtonsImageList
}{wxtreectrlsetbuttonsimagelist
}.
213 \membersection{wxTreeCtrl::AssignImageList
}\label{wxtreectrlassignimagelist
}
215 \func{void
}{AssignImageList
}{\param{wxImageList*
}{ imageList
}}
217 Sets the normal image list. Image list assigned with this method will
218 be automatically deleted by wxTreeCtrl as appropriate
219 (i.e. it takes ownership of the list).
221 See also
\helpref{SetImageList
}{wxtreectrlsetimagelist
}.
224 \membersection{wxTreeCtrl::AssignStateImageList
}\label{wxtreectrlassignstateimagelist
}
226 \func{void
}{AssignStateImageList
}{\param{wxImageList*
}{ imageList
}}
228 Sets the state image list. Image list assigned with this method will
229 be automatically deleted by wxTreeCtrl as appropriate
230 (i.e. it takes ownership of the list).
232 See also
\helpref{SetStateImageList
}{wxtreectrlsetstateimagelist
}.
236 \membersection{wxTreeCtrl::Collapse
}\label{wxtreectrlcollapse
}
238 \func{void
}{Collapse
}{\param{const wxTreeItemId\&
}{ item
}}
240 Collapses the given item.
243 \membersection{wxTreeCtrl::CollapseAll
}\label{wxtreectrlcollapseall
}
245 \func{void
}{CollapseAll
}{\void}
247 Collapses the root item.
251 \helpref{ExpandAll
}{wxtreectrlexpandall
}
254 \membersection{wxTreeCtrl::CollapseAllChildren
}\label{wxtreectrlcollapseallchildren
}
256 \func{void
}{CollapseAllChildren
}{\param{const wxTreeItemId\&
}{ item
}}
258 Collapses this item and all of its children, recursively.
262 \helpref{ExpandAllChildren
}{wxtreectrlexpandallchildren
}
265 \membersection{wxTreeCtrl::CollapseAndReset
}\label{wxtreectrlcollapseandreset
}
267 \func{void
}{CollapseAndReset
}{\param{const wxTreeItemId\&
}{ item
}}
269 Collapses the given item and removes all children.
272 \membersection{wxTreeCtrl::Create
}\label{wxtreectrlcreate
}
274 \func{bool
}{wxTreeCtrl
}{\param{wxWindow*
}{ parent
},
\param{wxWindowID
}{ id
},
\rtfsp
275 \param{const wxPoint\&
}{ pos = wxDefaultPosition
},
\param{const wxSize\&
}{ size = wxDefaultSize
},
\rtfsp
276 \param{long
}{ style = wxTR
\_HAS\_BUTTONS},
\param{const wxValidator\&
}{validator = wxDefaultValidator
},
\param{const wxString\&
}{name = ``treeCtrl"
}}
278 Creates the tree control. See
\helpref{wxTreeCtrl::wxTreeCtrl
}{wxtreectrlconstr
} for further details.
281 \membersection{wxTreeCtrl::Delete
}\label{wxtreectrldelete
}
283 \func{void
}{Delete
}{\param{const wxTreeItemId\&
}{ item
}}
285 Deletes the specified item. A
{\tt EVT
\_TREE\_DELETE\_ITEM} event will be
288 This function may cause a subsequent call to GetNextChild to fail.
291 \membersection{wxTreeCtrl::DeleteAllItems
}\label{wxtreectrldeleteallitems
}
293 \func{void
}{DeleteAllItems
}{\void}
295 Deletes all items in the control. Note that this may not generate
296 {\tt EVT
\_TREE\_DELETE\_ITEM} events under some Windows versions although
297 normally such event is generated for each removed item.
300 \membersection{wxTreeCtrl::DeleteChildren
}\label{wxtreectrldeletechildren
}
302 \func{void
}{DeleteChildren
}{\param{const wxTreeItemId\&
}{item
}}
304 Deletes all children of the given item (but not the item itself). Note that
305 this will
{\bf not
} generate any events unlike
306 \helpref{Delete
}{wxtreectrldelete
} method.
308 If you have called
\helpref{wxTreeCtrl::SetItemHasChildren
}{wxtreectrlsetitemhaschildren
}, you
309 may need to call it again since
{\it DeleteChildren
} does not automatically
313 \membersection{wxTreeCtrl::EditLabel
}\label{wxtreectrleditlabel
}
315 \func{void
}{EditLabel
}{\param{const wxTreeItemId\&
}{ item
}}
317 Starts editing the label of the given item. This function generates a
318 EVT
\_TREE\_BEGIN\_LABEL\_EDIT event which can be vetoed so that no
319 text control will appear for in-place editing.
321 If the user changed the label (i.e. s/he does not press ESC or leave
322 the text control without changes, a EVT
\_TREE\_END\_LABEL\_EDIT event
323 will be sent which can be vetoed as well.
327 \helpref{wxTreeCtrl::EndEditLabel
}{wxtreectrlendeditlabel
},
328 \helpref{wxTreeEvent
}{wxtreeevent
}
331 \membersection{wxTreeCtrl::EndEditLabel
}\label{wxtreectrlendeditlabel
}
333 \func{void
}{EndEditLabel
}{\param{bool
}{cancelEdit
}}
335 Ends label editing. If
{\it cancelEdit
} is
\true, the edit will be cancelled.
337 This function is currently supported under Windows only.
341 \helpref{wxTreeCtrl::EditLabel
}{wxtreectrleditlabel
}
344 \membersection{wxTreeCtrl::EnsureVisible
}\label{wxtreectrlensurevisible
}
346 \func{void
}{EnsureVisible
}{\param{const wxTreeItemId\&
}{ item
}}
348 Scrolls and/or expands items to ensure that the given item is visible.
351 \membersection{wxTreeCtrl::Expand
}\label{wxtreectrlexpand
}
353 \func{void
}{Expand
}{\param{const wxTreeItemId\&
}{ item
}}
355 Expands the given item.
358 \membersection{wxTreeCtrl::ExpandAll
}\label{wxtreectrlexpandall
}
360 \func{void
}{ExpandAll
}{\void}
362 Expands all items in the tree.
365 \membersection{wxTreeCtrl::ExpandAllChildren
}\label{wxtreectrlexpandallchildren
}
367 \func{void
}{ExpandAllChildren
}{\param{const wxTreeItemId\&
}{ item
}}
369 Expands the given item and all its children recursively.
372 \membersection{wxTreeCtrl::GetBoundingRect
}\label{wxtreectrlgetitemrect
}
374 \constfunc{bool
}{GetBoundingRect
}{\param{const wxTreeItemId\&
}{ item
},
\param{wxRect\&
}{rect
},
\param{bool
}{textOnly =
\false}}
376 Retrieves the rectangle bounding the
{\it item
}. If
{\it textOnly
} is
\true,
377 only the rectangle around the item's label will be returned, otherwise the
378 item's image is also taken into account.
380 The return value is
\true if the rectangle was successfully retrieved or
\false
381 if it was not (in this case
{\it rect
} is not changed) -- for example, if the
382 item is currently invisible.
384 Notice that the rectangle coordinates are logical, not physical ones. So, for
385 example, the x coordinate may be negative if the tree has a horizontal
386 scrollbar and its position is not $
0$.
388 \pythonnote{The wxPython version of this method requires only the
389 {\tt item
} and
{\tt textOnly
} parameters. The return value is either a
390 {\tt wxRect
} object or
{\tt None
}.
}
392 \perlnote{In wxPerl this method only takes the parameters
{\tt item
} and
393 {\tt textOnly
}, and returns a Wx::Rect ( or undef ).
}
396 \membersection{wxTreeCtrl::GetButtonsImageList
}\label{wxtreectrlgetbuttonsimagelist
}
398 \constfunc{wxImageList*
}{GetButtonsImageList
}{\void}
400 Returns the buttons image list (from which application-defined button images are taken).
402 This function is only available in the generic version.
405 \membersection{wxTreeCtrl::GetChildrenCount
}\label{wxtreectrlgetchildrencount
}
407 \constfunc{unsigned int
}{GetChildrenCount
}{\param{const wxTreeItemId\&
}{ item
},
\param{bool
}{ recursively =
\true}}
409 Returns the number of items in the branch. If
{\it recursively
} is
\true, returns the total number
410 of descendants, otherwise only one level of children is counted.
413 \membersection{wxTreeCtrl::GetCount
}\label{wxtreectrlgetcount
}
415 \constfunc{unsigned int
}{GetCount
}{\void}
417 Returns the number of items in the control.
420 \membersection{wxTreeCtrl::GetEditControl
}\label{wxtreectrlgeteditcontrol
}
422 \constfunc{wxTextCtrl *
}{GetEditControl
}{\void}
424 Returns the edit control being currently used to edit a label. Returns
{\tt NULL
}
425 if no label is being edited.
427 {\bf NB:
} It is currently only implemented for wxMSW.
430 \membersection{wxTreeCtrl::GetFirstChild
}\label{wxtreectrlgetfirstchild
}
432 \constfunc{wxTreeItemId
}{GetFirstChild
}{\param{const wxTreeItemId\&
}{ item
},
\param{wxTreeItemIdValue \&
}{cookie
}}
434 Returns the first child; call
\helpref{wxTreeCtrl::GetNextChild
}{wxtreectrlgetnextchild
} for the next child.
436 For this enumeration function you must pass in a `cookie' parameter
437 which is opaque for the application but is necessary for the library
438 to make these functions reentrant (i.e. allow more than one
439 enumeration on one and the same object simultaneously). The cookie passed to
440 GetFirstChild and GetNextChild should be the same variable.
442 Returns an invalid tree item (i.e. IsOk() returns
\false) if there are no further children.
446 \helpref{wxTreeCtrl::GetNextChild
}{wxtreectrlgetnextchild
},
447 \helpref{wxTreeCtrl::GetNextSibling
}{wxtreectrlgetnextsibling
}
449 \pythonnote{In wxPython the returned wxTreeItemId and the new cookie
450 value are both returned as a tuple containing the two values.
}
452 \perlnote{In wxPerl this method only takes the
{\tt item
} parameter, and
453 returns a
2-element list
{\tt ( item, cookie )
}.
}
456 \membersection{wxTreeCtrl::GetFirstVisibleItem
}\label{wxtreectrlgetfirstvisibleitem
}
458 \constfunc{wxTreeItemId
}{GetFirstVisibleItem
}{\void}
460 Returns the first visible item.
463 \membersection{wxTreeCtrl::GetImageList
}\label{wxtreectrlgetimagelist
}
465 \constfunc{wxImageList*
}{GetImageList
}{\void}
467 Returns the normal image list.
470 \membersection{wxTreeCtrl::GetIndent
}\label{wxtreectrlgetindent
}
472 \constfunc{int
}{GetIndent
}{\void}
474 Returns the current tree control indentation.
477 \membersection{wxTreeCtrl::GetItemBackgroundColour
}\label{wxtreectrlgetitembackgroundcolour
}
479 \constfunc{wxColour
}{GetItemBackgroundColour
}{\param{const wxTreeItemId\&
}{ item
}}
481 Returns the background colour of the item.
484 \membersection{wxTreeCtrl::GetItemData
}\label{wxtreectrlgetitemdata
}
486 \constfunc{wxTreeItemData*
}{GetItemData
}{\param{const wxTreeItemId\&
}{ item
}}
488 Returns the tree item data associated with the item.
492 \helpref{wxTreeItemData
}{wxtreeitemdata
}
494 \pythonnote{wxPython provides the following shortcut method:
496 \indented{2cm
}{\begin{twocollist
}\itemsep=
0pt
497 \twocolitem{{\bf GetPyData(item)
}}{Returns the Python Object
498 associated with the wxTreeItemData for the given item Id.
}
502 \perlnote{wxPerl provides the following shortcut method:
504 \begin{twocollist
}\itemsep=
0pt
505 \twocolitem{{\bf GetPlData( item )
}}{Returns the Perl data
506 associated with the Wx::TreeItemData. It is just the same as
507 tree->GetItemData(item)->GetData().
}
511 \membersection{wxTreeCtrl::GetItemFont
}\label{wxtreectrlgetitemfont
}
513 \constfunc{wxFont
}{GetItemFont
}{\param{const wxTreeItemId\&
}{ item
}}
515 Returns the font of the item label.
518 \membersection{wxTreeCtrl::GetItemImage
}\label{wxtreectrlgetitemimage
}
520 \constfunc{int
}{GetItemImage
}{\param{const wxTreeItemId\&
}{item
},
521 \param{wxTreeItemIcon
}{which = wxTreeItemIcon
\_Normal}}
523 Gets the specified item image. The value of
{\it which
} may be:
525 \begin{itemize
}\itemsep=
0pt
526 \item{wxTreeItemIcon
\_Normal} to get the normal item image
527 \item{wxTreeItemIcon
\_Selected} to get the selected item image (i.e. the image
528 which is shown when the item is currently selected)
529 \item{wxTreeItemIcon
\_Expanded} to get the expanded image (this only
530 makes sense for items which have children - then this image is shown when the
531 item is expanded and the normal image is shown when it is collapsed)
532 \item{wxTreeItemIcon
\_SelectedExpanded} to get the selected expanded image
533 (which is shown when an expanded item is currently selected)
537 \membersection{wxTreeCtrl::GetItemText
}\label{wxtreectrlgetitemtext
}
539 \constfunc{wxString
}{GetItemText
}{\param{const wxTreeItemId\&
}{ item
}}
541 Returns the item label.
544 \membersection{wxTreeCtrl::GetItemTextColour
}\label{wxtreectrlgetitemtextcolour
}
546 \constfunc{wxColour
}{GetItemTextColour
}{\param{const wxTreeItemId\&
}{ item
}}
548 Returns the colour of the item label.
551 \membersection{wxTreeCtrl::GetLastChild
}\label{wxtreectrlgetlastchild
}
553 \constfunc{wxTreeItemId
}{GetLastChild
}{\param{const wxTreeItemId\&
}{ item
}}
555 Returns the last child of the item (or an invalid tree item if this item has no children).
559 \helpref{GetFirstChild
}{wxtreectrlgetfirstchild
},
560 \helpref{wxTreeCtrl::GetNextSibling
}{wxtreectrlgetnextsibling
},
561 \helpref{GetLastChild
}{wxtreectrlgetlastchild
}
564 \membersection{wxTreeCtrl::GetNextChild
}\label{wxtreectrlgetnextchild
}
566 \constfunc{wxTreeItemId
}{GetNextChild
}{\param{const wxTreeItemId\&
}{ item
},
\param{wxTreeItemIdValue \&
}{cookie
}}
568 Returns the next child; call
\helpref{wxTreeCtrl::GetFirstChild
}{wxtreectrlgetfirstchild
} for the first child.
570 For this enumeration function you must pass in a `cookie' parameter
571 which is opaque for the application but is necessary for the library
572 to make these functions reentrant (i.e. allow more than one
573 enumeration on one and the same object simultaneously). The cookie passed to
574 GetFirstChild and GetNextChild should be the same.
576 Returns an invalid tree item if there are no further children.
580 \helpref{wxTreeCtrl::GetFirstChild
}{wxtreectrlgetfirstchild
}
582 \pythonnote{In wxPython the returned wxTreeItemId and the new cookie
583 value are both returned as a tuple containing the two values.
}
585 \perlnote{In wxPerl this method returns a
2-element list
586 {\tt ( item, cookie )
}, instead of modifying its parameters.
}
589 \membersection{wxTreeCtrl::GetNextSibling
}\label{wxtreectrlgetnextsibling
}
591 \constfunc{wxTreeItemId
}{GetNextSibling
}{\param{const wxTreeItemId\&
}{ item
}}
593 Returns the next sibling of the specified item; call
\helpref{wxTreeCtrl::GetPrevSibling
}{wxtreectrlgetprevsibling
} for the previous sibling.
595 Returns an invalid tree item if there are no further siblings.
599 \helpref{wxTreeCtrl::GetPrevSibling
}{wxtreectrlgetprevsibling
}
602 \membersection{wxTreeCtrl::GetNextVisible
}\label{wxtreectrlgetnextvisible
}
604 \constfunc{wxTreeItemId
}{GetNextVisible
}{\param{const wxTreeItemId\&
}{ item
}}
606 Returns the next visible item or an invalid item if this item is the last
609 Notice that the
\arg{item
} itself must be visible.
612 \membersection{wxTreeCtrl::GetItemParent
}\label{wxtreectrlgetitemparent
}
614 \constfunc{wxTreeItemId
}{GetItemParent
}{\param{const wxTreeItemId\&
}{ item
}}
616 Returns the item's parent.
619 \membersection{wxTreeCtrl::GetPrevSibling
}\label{wxtreectrlgetprevsibling
}
621 \constfunc{wxTreeItemId
}{GetPrevSibling
}{\param{const wxTreeItemId\&
}{ item
}}
623 Returns the previous sibling of the specified item; call
\helpref{wxTreeCtrl::GetNextSibling
}{wxtreectrlgetnextsibling
} for the next sibling.
625 Returns an invalid tree item if there are no further children.
629 \helpref{wxTreeCtrl::GetNextSibling
}{wxtreectrlgetnextsibling
}
632 \membersection{wxTreeCtrl::GetPrevVisible
}\label{wxtreectrlgetprevvisible
}
634 \constfunc{wxTreeItemId
}{GetPrevVisible
}{\param{const wxTreeItemId\&
}{ item
}}
636 Returns the previous visible item or an invalid item if this item is the first
639 Notice that the
\arg{item
} itself must be visible.
642 \membersection{wxTreeCtrl::GetQuickBestSize
}\label{wxtreectrlgetquickbestsize
}
644 \constfunc{bool
}{GetQuickBestSize
}{\void}
646 Returns true if the control will use a quick calculation for the best size,
647 looking only at the first and last items. The default is false.
651 \helpref{wxTreeCtrl::SetQuickBestSize
}{wxtreectrlsetquickbestsize
}
654 \membersection{wxTreeCtrl::GetRootItem
}\label{wxtreectrlgetrootitem
}
656 \constfunc{wxTreeItemId
}{GetRootItem
}{\void}
658 Returns the root item for the tree control.
661 \membersection{wxTreeCtrl::GetItemSelectedImage
}\label{wxtreectrlgetitemselectedimage
}
663 \constfunc{int
}{GetItemSelectedImage
}{\param{const wxTreeItemId\&
}{item
}}
665 Gets the selected item image (this function is obsolete, use
666 {\tt GetItemImage(item, wxTreeItemIcon
\_Selected)
} instead).
669 \membersection{wxTreeCtrl::GetSelection
}\label{wxtreectrlgetselection
}
671 \constfunc{wxTreeItemId
}{GetSelection
}{\void}
673 Returns the selection, or an invalid item if there is no selection.
674 This function only works with the controls without wxTR
\_MULTIPLE style, use
675 \helpref{GetSelections
}{wxtreectrlgetselections
} for the controls which do have
679 \membersection{wxTreeCtrl::GetSelections
}\label{wxtreectrlgetselections
}
681 \constfunc{unsigned int
}{GetSelections
}{\param{wxArrayTreeItemIds\&
}{selection
}}
683 Fills the array of tree items passed in with the currently selected items. This
684 function can be called only if the control has the wxTR
\_MULTIPLE style.
686 Returns the number of selected items.
688 \pythonnote{The wxPython version of this method accepts no parameters
689 and returns a Python list of
{\tt wxTreeItemId
}s.
}
691 \perlnote{In wxPerl this method takes no parameters and returns a list of
692 {\tt Wx::TreeItemId
}s.
}
695 \membersection{wxTreeCtrl::GetStateImageList
}\label{wxtreectrlgetstateimagelist
}
697 \constfunc{wxImageList*
}{GetStateImageList
}{\void}
699 Returns the state image list (from which application-defined state images are taken).
702 \membersection{wxTreeCtrl::HitTest
}\label{wxtreectrlhittest
}
704 \constfunc{wxTreeItemId
}{HitTest
}{\param{const wxPoint\&
}{point
},
\param{int\&
}{flags
}}
706 Calculates which (if any) item is under the given point, returning the tree item
707 id at this point plus extra information
{\it flags
}.
{\it flags
} is a bitlist of the following:
710 \begin{twocollist
}\itemsep=
0pt
711 \twocolitem{wxTREE
\_HITTEST\_ABOVE}{Above the client area.
}
712 \twocolitem{wxTREE
\_HITTEST\_BELOW}{Below the client area.
}
713 \twocolitem{wxTREE
\_HITTEST\_NOWHERE}{In the client area but below the last item.
}
714 \twocolitem{wxTREE
\_HITTEST\_ONITEMBUTTON}{On the button associated with an item.
}
715 \twocolitem{wxTREE
\_HITTEST\_ONITEMICON}{On the bitmap associated with an item.
}
716 \twocolitem{wxTREE
\_HITTEST\_ONITEMINDENT}{In the indentation associated with an item.
}
717 \twocolitem{wxTREE
\_HITTEST\_ONITEMLABEL}{On the label (string) associated with an item.
}
718 \twocolitem{wxTREE
\_HITTEST\_ONITEMRIGHT}{In the area to the right of an item.
}
719 \twocolitem{wxTREE
\_HITTEST\_ONITEMSTATEICON}{On the state icon for a tree view item that is in a user-defined state.
}
720 \twocolitem{wxTREE
\_HITTEST\_TOLEFT}{To the right of the client area.
}
721 \twocolitem{wxTREE
\_HITTEST\_TORIGHT}{To the left of the client area.
}
724 \pythonnote{in wxPython both the wxTreeItemId and the flags are
725 returned as a tuple.
}
727 \perlnote{In wxPerl this method only takes the
{\tt point
} parameter
728 and returns a
2-element list
{\tt ( item, flags )
}.
}
731 \membersection{wxTreeCtrl::InsertItem
}\label{wxtreectrlinsertitem
}
733 \func{wxTreeItemId
}{InsertItem
}{\param{const wxTreeItemId\&
}{parent
},
\param{const wxTreeItemId\&
}{previous
},
\param{const wxString\&
}{ text
},
734 \param{int
}{ image = -
1},
\param{int
}{ selImage = -
1},
\param{wxTreeItemData*
}{ data =
{\tt NULL
}}}
736 \func{wxTreeItemId
}{InsertItem
}{\param{const wxTreeItemId\&
}{parent
},
\param{size
\_t}{ before
},
\param{const wxString\&
}{ text
},
737 \param{int
}{ image = -
1},
\param{int
}{ selImage = -
1},
\param{wxTreeItemData*
}{ data =
{\tt NULL
}}}
739 Inserts an item after a given one (
{\it previous
}) or before one identified by its position (
{\it before
}).
740 {\it before
} must be less than the number of children.
742 The
{\it image
} and
{\it selImage
} parameters are an index within
743 the normal image list specifying the image to use for unselected and
744 selected items, respectively.
745 If
{\it image
} > -
1 and
{\it selImage
} is -
1, the same image is used for
746 both selected and unselected items.
748 \pythonnote{The second form of this method is called
749 {\tt InsertItemBefore
} in wxPython.
}
752 \membersection{wxTreeCtrl::IsBold
}\label{wxtreectrlisbold
}
754 \constfunc{bool
}{IsBold
}{\param{const wxTreeItemId\&
}{item
}}
756 Returns
\true if the given item is in bold state.
758 See also:
\helpref{SetItemBold
}{wxtreectrlsetitembold
}
761 \membersection{wxTreeCtrl::IsEmpty
}\label{wxtreectrlisempty
}
763 \constfunc{bool
}{IsEmpty
}{}
765 Returns
\true if the control is empty (i.e. has no items, even no root one).
768 \membersection{wxTreeCtrl::IsExpanded
}\label{wxtreectrlisexpanded
}
770 \constfunc{bool
}{IsExpanded
}{\param{const wxTreeItemId\&
}{ item
}}
772 Returns
\true if the item is expanded (only makes sense if it has children).
775 \membersection{wxTreeCtrl::IsSelected
}\label{wxtreectrlisselected
}
777 \constfunc{bool
}{IsSelected
}{\param{const wxTreeItemId\&
}{ item
}}
779 Returns
\true if the item is selected.
782 \membersection{wxTreeCtrl::IsVisible
}\label{wxtreectrlisvisible
}
784 \constfunc{bool
}{IsVisible
}{\param{const wxTreeItemId\&
}{ item
}}
786 Returns
\true if the item is visible on the screen.
789 \membersection{wxTreeCtrl::ItemHasChildren
}\label{wxtreectrlitemhaschildren
}
791 \constfunc{bool
}{ItemHasChildren
}{\param{const wxTreeItemId\&
}{ item
}}
793 Returns
\true if the item has children.
796 \membersection{wxTreeCtrl::OnCompareItems
}\label{wxtreectrloncompareitems
}
798 \func{int
}{OnCompareItems
}{\param{const wxTreeItemId\&
}{item1
},
\param{const wxTreeItemId\&
}{item2
}}
800 Override this function in the derived class to change the sort order of the
801 items in the tree control. The function should return a negative, zero or
802 positive value if the first item is less than, equal to or greater than the
805 Please note that you
\textbf{must
} use wxRTTI macros
806 \helpref{DECLARE
\_DYNAMIC\_CLASS}{declaredynamicclass
} and
807 \helpref{IMPLEMENT
\_DYNAMIC\_CLASS}{implementdynamicclass
} if you override this
808 function because otherwise the base class considers that it is not overridden
809 and uses the default comparison, i.e. sorts the items alphabetically, which
810 allows it optimize away the calls to the virtual function completely.
812 See also:
\helpref{SortChildren
}{wxtreectrlsortchildren
}
815 \membersection{wxTreeCtrl::PrependItem
}\label{wxtreectrlprependitem
}
817 \func{wxTreeItemId
}{PrependItem
}{\param{const wxTreeItemId\&
}{parent
},
\param{const wxString\&
}{ text
},
818 \param{int
}{ image = -
1},
\param{int
}{ selImage = -
1},
\param{wxTreeItemData*
}{ data =
{\tt NULL
}}}
820 Appends an item as the first child of
{\it parent
}, return a new item id.
822 The
{\it image
} and
{\it selImage
} parameters are an index within
823 the normal image list specifying the image to use for unselected and
824 selected items, respectively.
825 If
{\it image
} > -
1 and
{\it selImage
} is -
1, the same image is used for
826 both selected and unselected items.
829 \membersection{wxTreeCtrl::ScrollTo
}\label{wxtreectrlscrollto
}
831 \func{void
}{ScrollTo
}{\param{const wxTreeItemId\&
}{ item
}}
833 Scrolls the specified item into view.
836 \membersection{wxTreeCtrl::SelectItem
}\label{wxtreectrlselectitem
}
838 \func{void
}{SelectItem
}{\param{const wxTreeItemId\&
}{ item
},
\param{bool
}{select =
\true}}
840 Selects the given item. In multiple selection controls, can be also used to
841 deselect a currently selected item if the value of
\arg{select
} is false.
844 \membersection{wxTreeCtrl::SetButtonsImageList
}\label{wxtreectrlsetbuttonsimagelist
}
846 \func{void
}{SetButtonsImageList
}{\param{wxImageList*
}{ imageList
}}
848 Sets the buttons image list (from which application-defined button images are taken).
849 The button images assigned with this method will
850 {\bf not
} be deleted by wxTreeCtrl's destructor, you must delete it yourself.
852 Setting or assigning the button image list enables the display of image buttons.
853 Once enabled, the only way to disable the display of button images is to set
854 the button image list to
{\tt NULL
}.
856 This function is only available in the generic version.
858 See also
\helpref{AssignButtonsImageList
}{wxtreectrlassignbuttonsimagelist
}.
861 \membersection{wxTreeCtrl::SetIndent
}\label{wxtreectrlsetindent
}
863 \func{void
}{SetIndent
}{\param{int
}{indent
}}
865 Sets the indentation for the tree control.
868 \membersection{wxTreeCtrl::SetImageList
}\label{wxtreectrlsetimagelist
}
870 \func{void
}{SetImageList
}{\param{wxImageList*
}{ imageList
}}
872 Sets the normal image list. Image list assigned with this method will
873 {\bf not
} be deleted by wxTreeCtrl's destructor, you must delete it yourself.
875 See also
\helpref{AssignImageList
}{wxtreectrlassignimagelist
}.
879 \membersection{wxTreeCtrl::SetItemBackgroundColour
}\label{wxtreectrlsetitembackgroundcolour
}
881 \func{void
}{SetItemBackgroundColour
}{\param{const wxTreeItemId\&
}{ item
},
\param{const wxColour\&
}{col
}}
883 Sets the colour of the item's background.
886 \membersection{wxTreeCtrl::SetItemBold
}\label{wxtreectrlsetitembold
}
888 \func{void
}{SetItemBold
}{\param{const wxTreeItemId\&
}{item
},
\param{bool
}{ bold =
\true}}
890 Makes item appear in bold font if
{\it bold
} parameter is
\true or resets it to
893 See also:
\helpref{IsBold
}{wxtreectrlisbold
}
896 \membersection{wxTreeCtrl::SetItemData
}\label{wxtreectrlsetitemdata
}
898 \func{void
}{SetItemData
}{\param{const wxTreeItemId\&
}{ item
},
\param{wxTreeItemData*
}{data
}}
900 Sets the item client data.
902 \pythonnote{wxPython provides the following shortcut method:
\par
903 \indented{2cm
}{\begin{twocollist
}\itemsep=
0pt
904 \twocolitem{{\bf SetPyData(item, obj)
}}{Associate the given Python
905 Object with the wxTreeItemData for the given item Id.
}
909 \perlnote{wxPerl provides the following shortcut method:
911 \begin{twocollist
}\itemsep=
0pt
912 \twocolitem{{\bf SetPlData( item, data )
}}{Sets the Perl data
913 associated with the Wx::TreeItemData. It is just the same as
914 tree->GetItemData(item)->SetData(data).
}
918 \membersection{wxTreeCtrl::SetItemDropHighlight
}\label{wxtreectrlsetitemdrophighlight
}
920 \func{void
}{SetItemDropHighlight
}{\param{const wxTreeItemId\&
}{ item
},
\param{bool
}{highlight =
\true}}
922 Gives the item the visual feedback for Drag'n'Drop actions, which is
923 useful if something is dragged from the outside onto the tree control
924 (as opposed to a DnD operation within the tree control, which already
925 is implemented internally).
927 \membersection{wxTreeCtrl::SetItemFont
}\label{wxtreectrlsetitemfont
}
929 \func{void
}{SetItemFont
}{\param{const wxTreeItemId\&
}{ item
},
\param{const wxFont\&
}{font
}}
931 Sets the item's font. All items in the tree should have the same height to avoid
932 text clipping, so the fonts height should be the same for all of them,
933 although font attributes may vary.
937 \helpref{SetItemBold
}{wxtreectrlsetitembold
}
940 \membersection{wxTreeCtrl::SetItemHasChildren
}\label{wxtreectrlsetitemhaschildren
}
942 \func{void
}{SetItemHasChildren
}{\param{const wxTreeItemId\&
}{ item
},
\param{bool
}{hasChildren =
\true}}
944 Force appearance of the button next to the item. This is useful to
945 allow the user to expand the items which don't have any children now,
946 but instead adding them only when needed, thus minimizing memory
947 usage and loading time.
950 \membersection{wxTreeCtrl::SetItemImage
}\label{wxtreectrlsetitemimage
}
952 \func{void
}{SetItemImage
}{\param{const wxTreeItemId\&
}{ item
},
953 \param{int
}{image
},
\param{wxTreeItemIcon
}{which = wxTreeItemIcon
\_Normal}}
955 Sets the specified item image. See
\helpref{GetItemImage
}{wxtreectrlgetitemimage
}
956 for the description of the
{\it which
} parameter.
959 \membersection{wxTreeCtrl::SetItemSelectedImage
}\label{wxtreectrlsetitemselectedimage
}
961 \func{void
}{SetItemSelectedImage
}{\param{const wxTreeItemId\&
}{ item
},
\param{int
}{selImage
}}
963 Sets the selected item image (this function is obsolete, use
964 {\tt SetItemImage(item, wxTreeItemIcon
\_Selected)
} instead).
967 \membersection{wxTreeCtrl::SetItemText
}\label{wxtreectrlsetitemtext
}
969 \func{void
}{SetItemText
}{\param{const wxTreeItemId\&
}{ item
},
\param{const wxString\&
}{text
}}
974 \membersection{wxTreeCtrl::SetItemTextColour
}\label{wxtreectrlsetitemtextcolour
}
976 \func{void
}{SetItemTextColour
}{\param{const wxTreeItemId\&
}{ item
},
\param{const wxColour\&
}{col
}}
978 Sets the colour of the item's text.
981 \membersection{wxTreeCtrl::SetQuickBestSize
}\label{wxtreectrlsetquickbestsize
}
983 \func{void
}{SetQuickBestSize
}{\param{bool
}{ quickBestSize
}}
985 If true is passed, specifies that the control will use a quick calculation for the best size,
986 looking only at the first and last items. Otherwise, it will look at all items.
987 The default is false.
991 \helpref{wxTreeCtrl::GetQuickBestSize
}{wxtreectrlgetquickbestsize
}
994 \membersection{wxTreeCtrl::SetStateImageList
}\label{wxtreectrlsetstateimagelist
}
996 \func{void
}{SetStateImageList
}{\param{wxImageList*
}{ imageList
}}
998 Sets the state image list (from which application-defined state images are taken).
999 Image list assigned with this method will
1000 {\bf not
} be deleted by wxTreeCtrl's destructor, you must delete it yourself.
1002 See also
\helpref{AssignStateImageList
}{wxtreectrlassignstateimagelist
}.
1004 \membersection{wxTreeCtrl::SetWindowStyle
}\label{wxtreectrlsetwindowstyle
}
1006 \func{void
}{SetWindowStyle
}{\param{long
}{styles
}}
1008 Sets the mode flags associated with the display of the tree control.
1009 The new mode takes effect immediately.
1010 (Generic only; MSW ignores changes.)
1013 \membersection{wxTreeCtrl::SortChildren
}\label{wxtreectrlsortchildren
}
1015 \func{void
}{SortChildren
}{\param{const wxTreeItemId\&
}{ item
}}
1017 Sorts the children of the given item using
1018 \helpref{OnCompareItems
}{wxtreectrloncompareitems
} method of wxTreeCtrl. You
1019 should override that method to change the sort order (the default is ascending
1020 case-sensitive alphabetical order).
1022 \wxheading{See also
}
1024 \helpref{wxTreeItemData
}{wxtreeitemdata
},
\helpref{OnCompareItems
}{wxtreectrloncompareitems
}
1027 \membersection{wxTreeCtrl::Toggle
}\label{wxtreectrltoggle
}
1029 \func{void
}{Toggle
}{\param{const wxTreeItemId\&
}{ item
}}
1031 Toggles the given item between collapsed and expanded states.
1034 \membersection{wxTreeCtrl::ToggleItemSelection
}\label{wxtreectrltoggleitemselection
}
1036 \func{void
}{ToggleItemSelection
}{\param{const wxTreeItemId\&
}{ item
}}
1038 Toggles the given item between selected and unselected states. For
1039 multiselection controls only.
1042 \membersection{wxTreeCtrl::Unselect
}\label{wxtreectrlunselect
}
1044 \func{void
}{Unselect
}{\void}
1046 Removes the selection from the currently selected item (if any).
1049 \membersection{wxTreeCtrl::UnselectAll
}\label{wxtreectrlunselectall
}
1051 \func{void
}{UnselectAll
}{\void}
1053 This function either behaves the same as
\helpref{Unselect
}{wxtreectrlunselect
}
1054 if the control doesn't have wxTR
\_MULTIPLE style, or removes the selection from
1055 all items if it does have this style.
1058 \membersection{wxTreeCtrl::UnselectItem
}\label{wxtreectrlunselectitem
}
1060 \func{void
}{UnselectItem
}{\param{const wxTreeItemId\&
}{item
}}
1062 Unselects the given item. This works in multiselection controls only.
1068 %% the wxTreeItemId opaque class
1071 \section{\class{wxTreeItemId
}}\label{wxtreeitemid
}
1073 An opaque reference to a tree item.
1076 \wxheading{Derived from
}
1080 \wxheading{Include files
}
1086 \helpref{wxCore
}{librarieslist
}
1088 \wxheading{See also
}
1090 \helpref{wxTreeCtrl
}{wxtreectrl
},
\helpref{wxTreeItemData
}{wxtreeitemdata
},\\
1091 \helpref{wxTreeCtrl overview
}{wxtreectrloverview
}
1094 \latexignore{\rtfignore{\wxheading{Members
}}}
1096 \membersection{wxTreeItemId::wxTreeItemId
}\label{wxtreeitemidconstr
}
1098 \func{}{wxTreeItemId
}{\void}
1100 Default constructor. wxTreemItemIds are not meant to be constructed explicitly by
1101 the user; they are returned by the
\helpref{wxTreeCtrl
}{wxtreectrl
} functions instead.
1104 \membersection{wxTreeItemId::IsOk
}\label{wxtreeitemidisok
}
1106 \constfunc{bool
}{IsOk
}{}
1108 Returns
\true if this instance is referencing a valid tree item.
1111 \membersection{Operators
}\label{wxtreeitemidoperators
}
1113 \constfunc{void
}{operator $!$
}{}
1115 Antonym of
\helpref{IsOk
}{wxtreeitemidisok
}, i.e. returns
\true only if the
1119 \constfunc{bool
}{operator $==$
}{\param{const wxTreeItemId\&
}{item
}}
1121 \constfunc{bool
}{operator $!=$
}{\param{const wxTreeItemId\&
}{item
}}
1123 Operators for comparison between
\helpref{wxTreeItemId
}{wxtreeitemid
} objects.