From 1cea736e035f7bf6dbe696d5e724cfdb17c35686 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Wed, 26 Jan 2011 15:54:03 +0000 Subject: [PATCH] hinting support git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/textctrl_osx.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/osx/textctrl_osx.cpp b/src/osx/textctrl_osx.cpp index 7efdcb487a..226c24f2a8 100644 --- a/src/osx/textctrl_osx.cpp +++ b/src/osx/textctrl_osx.cpp @@ -602,6 +602,21 @@ bool wxTextCtrl::MacSetupCursor( const wxPoint& pt ) return true ; } +bool wxTextCtrl::SetHint(const wxString& hint) +{ + m_hintString = hint; + + if ( GetTextPeer() && GetTextPeer()->SetHint(hint) ) + return true; + + return false; +} + +wxString wxTextCtrl::GetHint() const +{ + return m_hintString; +} + // ---------------------------------------------------------------------------- // implementation base class // ----------------------------------------------------------------------------