]> git.saurik.com Git - wxWidgets.git/commitdiff
hinting support
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 26 Jan 2011 15:54:03 +0000 (15:54 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 26 Jan 2011 15:54:03 +0000 (15:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/textctrl_osx.cpp

index 7efdcb487a84876c32975171eb76aac8ea4f9f2c..226c24f2a8dcf9be6ef09f1973dca284a2f34429 100644 (file)
@@ -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
 // ----------------------------------------------------------------------------