#ifndef _WX_TEXTCTRL_H_
#define _WX_TEXTCTRL_H_
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
- #pragma interface "textctrl.h"
-#endif
-
class WXDLLEXPORT wxTextCtrl : public wxTextCtrlBase
{
public:
Create(parent, id, value, pos, size, style, validator, name);
}
- ~wxTextCtrl();
+ virtual ~wxTextCtrl();
bool Create(wxWindow *parent, wxWindowID id,
const wxString& value = wxEmptyString,
// ----------------------------------
virtual wxString GetValue() const;
- virtual void SetValue(const wxString& value);
-
- virtual wxString GetRange(long from, long to) const;
virtual int GetLineLength(long lineNo) const;
virtual wxString GetLineText(long lineNo) const;
virtual void Replace(long from, long to, const wxString& value);
virtual void Remove(long from, long to);
- // load the controls contents from the file
- virtual bool LoadFile(const wxString& file);
+ // load the control's contents from the file
+ virtual bool DoLoadFile(const wxString& file, int fileType);
// clears the dirty flag
virtual void MarkDirty();
// Implementation from now on
// --------------------------
- virtual void SetWindowStyleFlag(long style);
-
virtual void Command(wxCommandEvent& event);
virtual bool MSWCommand(WXUINT param, WXWORD id);
- virtual WXHBRUSH OnCtlColor(WXHDC pDC, WXHWND pWnd, WXUINT nCtlColor,
- WXUINT message, WXWPARAM wParam, WXLPARAM lParam);
#if wxUSE_RICHEDIT
virtual bool MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result);
virtual bool SetForegroundColour(const wxColour& colour);
#endif // wxUSE_RICHEDIT
- virtual void AdoptAttributesFromHWND();
-
virtual bool AcceptsFocus() const;
// callbacks
// common part of all ctors
void Init();
+ virtual void DoSetValue(const wxString& value, int flags = 0);
+
+
// intercept WM_GETDLGCODE
virtual WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);