Add wxTreeCtrl::{Clear,Set}FocusedItem().
Allow changing just the currently focused (not selected) item and also removing the focus completely. Closes #11599. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -214,6 +214,13 @@ public:
|
||||
// equivalent to GetSelection() if not wxTR_MULTIPLE
|
||||
virtual wxTreeItemId GetFocusedItem() const = 0;
|
||||
|
||||
|
||||
// Clears the currently focused item
|
||||
virtual void ClearFocusedItem() = 0;
|
||||
// Sets the currently focused item. Item should be valid
|
||||
virtual void SetFocusedItem(const wxTreeItemId& item) = 0;
|
||||
|
||||
|
||||
// get the parent of this item (may return NULL if root)
|
||||
virtual wxTreeItemId GetItemParent(const wxTreeItemId& item) const = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user