X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0e320a79f187558effb04d92020b470372bbe456..d1b15f03b8e614c83541ca3487f847f61122b514:/include/wx/os2/textctrl.h diff --git a/include/wx/os2/textctrl.h b/include/wx/os2/textctrl.h index e8089a9f64..09c11e063e 100644 --- a/include/wx/os2/textctrl.h +++ b/include/wx/os2/textctrl.h @@ -42,7 +42,7 @@ class WXDLLEXPORT wxTextCtrl: public wxControl { DECLARE_DYNAMIC_CLASS(wxTextCtrl) - + public: // creation // -------- @@ -59,14 +59,14 @@ public: { Create(parent, id, value, pos, size, style, validator, name); } - + bool Create(wxWindow *parent, wxWindowID id, const wxString& value = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxTextCtrlNameStr); - + // accessors // --------- virtual wxString GetValue() const ; @@ -79,12 +79,12 @@ public: // operations // ---------- virtual void SetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO); - + // Clipboard operations virtual void Copy(); virtual void Cut(); virtual void Paste(); - + virtual bool CanCopy() const; virtual bool CanCut() const; virtual bool CanPaste() const; @@ -116,26 +116,26 @@ public: int sync(); int underflow(); #endif - + wxTextCtrl& operator<<(const wxString& s); wxTextCtrl& operator<<(int i); wxTextCtrl& operator<<(long i); wxTextCtrl& operator<<(float f); wxTextCtrl& operator<<(double d); wxTextCtrl& operator<<(const char c); - + virtual bool LoadFile(const wxString& file); virtual bool SaveFile(const wxString& file); virtual void WriteText(const wxString& text); virtual void AppendText(const wxString& text); virtual void DiscardEdits(); virtual bool IsModified() const; - + virtual long XYToPosition(long x, long y) const ; virtual void PositionToXY(long pos, long *x, long *y) const ; virtual void ShowPosition(long pos); virtual void Clear(); - + // callbacks // --------- void OnDropFiles(wxDropFilesEvent& event); @@ -159,10 +159,8 @@ public: protected: wxString m_fileName; - + DECLARE_EVENT_TABLE() -private: - void SetSize(int width, int height) {wxWindow::SetSize(width, height);} }; #endif