From 3dd67a18b75bfd8203e43fdd29efd5c81bbdeb67 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 2 Mar 2005 18:32:52 +0000 Subject: [PATCH] Add GetToolTip accessor git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32562 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/treebase.h | 3 ++- wxPython/src/_treectrl.i | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/wx/treebase.h b/include/wx/treebase.h index 9148bd6d27..065432bc69 100644 --- a/include/wx/treebase.h +++ b/include/wx/treebase.h @@ -283,7 +283,8 @@ public: // Set the tooltip for the item (for EVT\_TREE\_ITEM\_GETTOOLTIP events) void SetToolTip(const wxString& toolTip) { m_label = toolTip; } - + wxString GetToolTip() { return m_label; } + #if WXWIN_COMPATIBILITY_2_2 // for compatibility only, don't use wxDEPRECATED( int GetCode() const); diff --git a/wxPython/src/_treectrl.i b/wxPython/src/_treectrl.i index e9f9f741dd..f76254f658 100644 --- a/wxPython/src/_treectrl.i +++ b/wxPython/src/_treectrl.i @@ -256,6 +256,7 @@ public: // Set the tooltip for the item (for EVT_TREE_ITEM_GETTOOLTIP events) void SetToolTip(const wxString& toolTip); + wxString GetToolTip(); }; //---------------------------------------------------------------------------