const wxValidator& validator,
const wxString& name )
{
- m_macIsUserPane = false ;
+ DontCreatePeer();
m_editable = true ;
if ( ! (style & wxNO_BORDER) )
}
- m_peer = wxWidgetImpl::CreateTextControl( this, GetParent(), GetId(), str, pos, size, style, GetExtraStyle() );
+ SetPeer(wxWidgetImpl::CreateTextControl( this, GetParent(), GetId(), str, pos, size, style, GetExtraStyle() ));
MacPostControlCreate(pos, size) ;
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
// ----------------------------------------------------------------------------