Add a possibility to beep on no match to wxGenericTreeCtrl.
For consistency with Windows, allow to optionally generate a beep when incremental search in the tree control doesn't find anything. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user