added wxTreeCtrl::GetFocusedItem() (closes #10859)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-06-19 23:34:51 +00:00
parent 61dabbffe3
commit febebac1a0
5 changed files with 39 additions and 14 deletions

View File

@@ -418,6 +418,15 @@ public:
*/
virtual wxTreeItemId GetFirstVisibleItem() const;
/**
Returns the item last clicked or otherwise selected.
Unlike GetSelection(), it can be used whether or not
the control has the @c wxTR_MULTIPLE style.
@since 2.9.1
*/
virtual wxTreeItemId GetFocusedItem() const;
/**
Returns the normal image list.
*/
@@ -566,7 +575,8 @@ public:
/**
Returns the selection, or an invalid item if there is no selection. This
function only works with the controls without @c wxTR_MULTIPLE style,
use GetSelections() for the controls which do have this style.
use GetSelections() for the controls which do have this style
or, if a single item is wanted, use GetFocusedItem().
*/
virtual wxTreeItemId GetSelection() const;