X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e5e10e234e2325fa6e25b23098470c5015e07a01..35f6f71b19d8c2f714fa8600322470367cb7b4c6:/interface/wx/treectrl.h diff --git a/interface/wx/treectrl.h b/interface/wx/treectrl.h index 8327401803..f328935b7e 100644 --- a/interface/wx/treectrl.h +++ b/interface/wx/treectrl.h @@ -158,7 +158,7 @@ @library{wxcore} @category{ctrl} - @appearance{treectrl.png} + @appearance{treectrl} @see wxDataViewTreeCtrl, wxTreeEvent, wxTreeItemData, @ref overview_treectrl, wxListBox, wxListCtrl, wxImageList @@ -339,6 +339,18 @@ public: virtual wxTextCtrl *EditLabel(const wxTreeItemId& item, wxClassInfo* textCtrlClass = wxCLASSINFO(wxTextCtrl)); + /** + Enable or disable a beep if there is no match for the currently + entered text when searching for the item from keyboard. + + The default is to not beep in this case except in wxMSW where the + beep is always generated by the native control and cannot be disabled, + i.e. calls to this function do nothing there. + + @since 2.9.5 + */ + void EnableBellOnNoMatch(bool on = true); + /** Ends label editing. If @a cancelEdit is @true, the edit will be cancelled. @@ -691,8 +703,8 @@ public: /** Inserts an item before one identified - by its position (@a before). @a before must be less than the number of - children. + by its position (@a pos). @a pos must be less than or equal to + the number of children. The @a image and @a selImage parameters are an index within the normal image list specifying the image to use for unselected and selected @@ -700,7 +712,7 @@ public: image is used for both selected and unselected items. */ wxTreeItemId InsertItem(const wxTreeItemId& parent, - size_t before, + size_t pos, const wxString& text, int image = -1, int selImage = -1, @@ -714,7 +726,7 @@ public: virtual bool IsBold(const wxTreeItemId& item) const; /** - Returns @true if the control is empty (i.e. has no items, even no root + Returns @true if the control is empty (i.e.\ has no items, even no root one). */ bool IsEmpty() const; @@ -1043,7 +1055,7 @@ public: The state image has been clicked. @endEventTable - @library{wxbase} + @library{wxcore} @category{events} @see wxTreeCtrl