X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a1e92028b314fb19ecdc2756fa2601603e7f6607..08c1613f889a3239c6392b4828c07dd4a00bac22:/interface/wx/treectrl.h?ds=inline diff --git a/interface/wx/treectrl.h b/interface/wx/treectrl.h index 38bf3342f6..6897303738 100644 --- a/interface/wx/treectrl.h +++ b/interface/wx/treectrl.h @@ -150,9 +150,10 @@ public: Window identifier. The value @c wxID_ANY indicates a default value. @param pos Window position. + If ::wxDefaultPosition is specified then a default position is chosen. @param size - Window size. If wxDefaultSize is specified then the window is sized - appropriately. + Window size. + If ::wxDefaultSize is specified then the window is sized appropriately. @param style Window style. See wxTreeCtrl. @param validator @@ -417,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. */ @@ -565,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;