#ifndef _WX_TEXTCTRL_H_
#define _WX_TEXTCTRL_H_
-class WXDLLEXPORT wxTextCtrl : public wxTextCtrlBase
+class WXDLLIMPEXP_CORE wxTextCtrl : public wxTextCtrlBase
{
public:
// creation
// implement base class pure virtuals
// ----------------------------------
- virtual bool DoLoadFile(const wxString& file, int fileType);
-
virtual bool IsModified() const;
virtual void MarkDirty();
virtual void DiscardEdits();
// common part of all ctors
void Init();
+ virtual bool DoLoadFile(const wxString& file, int fileType);
+
// creates the control of appropriate class (plain or rich edit) with the
// styles corresponding to m_windowStyle
//
virtual void DoSetValue(const wxString &value, int flags = 0);
- // implement wxTextEntry pure virtual: it implements all the operations for
- // the simple EDIT controls
- virtual WXHWND GetEditHWND() const { return m_hWnd; }
-
// return true if this control has a user-set limit on amount of text (i.e.
// the limit is due to a previous call to SetMaxLength() and not built in)
bool HasSpaceLimit(unsigned int *len) const;
// set the selection (possibly without scrolling the caret into view)
void DoSetSelection(long from, long to, int flags);
- // return true if there is a non empty selection in the control
- bool HasSelection() const;
-
// get the length of the line containing the character at the given
// position
long GetLengthOfLineContainingPos(long pos) const;
// text ourselves: we want this to be exactly 1
int m_updatesCount;
+private:
virtual void EnableTextChangedEvents(bool enable)
{
m_updatesCount = enable ? -1 : -2;
}
-private:
+ // implement wxTextEntry pure virtual: it implements all the operations for
+ // the simple EDIT controls
+ virtual WXHWND GetEditHWND() const { return m_hWnd; }
+
+ void OnKeyDown(wxKeyEvent& event);
+
DECLARE_EVENT_TABLE()
DECLARE_DYNAMIC_CLASS_NO_COPY(wxTextCtrl)