virtual bool MacCanFocus() const ;
virtual void DoSetSize(int x, int y,int width, int height,int sizeFlags = wxSIZE_AUTO ) ;
- virtual void OnKeyDown( wxKeyEvent &event ) ;
- virtual void OnMouseEvent( wxMouseEvent &event ) ;
- virtual void OnPaint(wxPaintEvent& event) ;
+ void OnKeyDown( wxKeyEvent &event ) ;
+ void OnMouseEvent( wxMouseEvent &event ) ;
+ void OnPaint(wxPaintEvent& event) ;
virtual void Refresh(bool eraseBack = TRUE, const wxRect *rect = NULL) ;
WXWidget GetMacControl() { return m_macControl ;}
virtual void Command(wxCommandEvent& WXUNUSED(event)) {};
virtual void ProcessCommand(wxCommandEvent& WXUNUSED(event)) {};
- virtual void OnPaint( wxPaintEvent &event ) ;
+ void OnPaint( wxPaintEvent &event ) ;
wxBitmap GetBitmap() const { return m_bitmap; }
wxIcon GetIcon() const
// clears the dirty flag
virtual void DiscardEdits();
+ // set the max number of characters which may be entered in a single line
+ // text control
+ virtual void SetMaxLength(unsigned long len) ;
+
+ // text control under some platforms supports the text styles: these
+ // methods allow to apply the given text style to the given selection or to
+ // set/get the style which will be used for all appended text
+ virtual bool SetStyle(long start, long end, const wxTextAttr& style);
+ virtual bool SetDefaultStyle(const wxTextAttr& style);
+
// writing text inserts it at the current position, appending always
// inserts it at the end
virtual void WriteText(const wxString& text);
void* m_macTXN ;
void* m_macTXNvars ;
bool m_macUsesTXN ;
+ unsigned long m_maxLength ;
DECLARE_EVENT_TABLE()
};