/////////////////////////////////////////////////////////////////////////////
-// Name: textimpl.h
+// Name: wx/osx/iphone/private/textimpl.h
// Purpose: textcontrol implementation classes that have to be exposed
// Author: Stefan Csomor
// Modified by:
// Created: 03/02/99
-// RCS-ID: $Id: textimpl.h 63564 2010-02-27 02:51:45Z KO $
+// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
class wxUITextFieldControl : public wxWidgetIPhoneImpl, public wxTextWidgetImpl
{
public :
- wxUITextFieldControl( wxWindow *wxPeer, UITextField* w );
+ wxUITextFieldControl( wxTextCtrl *wxPeer, UITextField* w );
virtual ~wxUITextFieldControl();
virtual wxString GetStringValue() const ;
virtual void WriteText(const wxString& str) ;
virtual bool HasOwnContextMenu() const { return true; }
+ virtual wxSize GetBestSize() const;
+
+ virtual bool SetHint(const wxString& hint);
+
virtual void controlAction(WXWidget slf, void* _cmd, void *sender);
protected :
UITextField* m_textField;
+ NSObject<UITextFieldDelegate>* m_delegate;
long m_selStart;
long m_selEnd;
};
virtual wxSize GetBestSize() const;
protected:
+ NSObject<UITextViewDelegate>* m_delegate;
UITextView* m_textView;
};