#ifndef _WX_TEXTCTRL_H_
#define _WX_TEXTCTRL_H_
-class WXDLLEXPORT wxTextCtrl : public wxTextCtrlBase
+class WXDLLIMPEXP_CORE wxTextCtrl : public wxTextCtrlBase
{
public:
// creation
// Implementation from now on
// --------------------------
-
+
#if wxUSE_DRAG_AND_DROP && wxUSE_RICHEDIT
virtual void SetDropTarget(wxDropTarget *dropTarget);
#endif // wxUSE_DRAG_AND_DROP && wxUSE_RICHEDIT
int GetRichVersion() const { return m_verRichEdit; }
bool IsRich() const { return m_verRichEdit != 0; }
- // rich edit controls are not compatible with normal ones and wem ust set
- // the colours for them otherwise
+ // rich edit controls are not compatible with normal ones and we must set
+ // the colours and font for them otherwise
virtual bool SetBackgroundColour(const wxColour& colour);
virtual bool SetForegroundColour(const wxColour& colour);
+ virtual bool SetFont(const wxFont& font);
#else
bool IsRich() const { return false; }
#endif // wxUSE_RICHEDIT
virtual bool MSWShouldPreProcessMessage(WXMSG* pMsg);
virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
- virtual wxVisualAttributes GetDefaultAttributes() const;
protected:
// common part of all ctors
// the simple EDIT controls
virtual WXHWND GetEditHWND() const { return m_hWnd; }
+ void OnKeyDown(wxKeyEvent& event);
+
DECLARE_EVENT_TABLE()
DECLARE_DYNAMIC_CLASS_NO_COPY(wxTextCtrl)