implemented, tested and documented wxTextCtrl::SetMaxLength()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11383 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: textctrl.h
|
||||
// Name: wx/msw/textctrl.h
|
||||
// Purpose: wxTextCtrl class
|
||||
// Author: Julian Smart
|
||||
// Modified by:
|
||||
@@ -72,6 +72,8 @@ public:
|
||||
// clears the dirty flag
|
||||
virtual void DiscardEdits();
|
||||
|
||||
virtual void SetMaxLength(unsigned long len);
|
||||
|
||||
// writing text inserts it at the current position, appending always
|
||||
// inserts it at the end
|
||||
virtual void WriteText(const wxString& text);
|
||||
@@ -164,18 +166,21 @@ public:
|
||||
void OnUpdateRedo(wxUpdateUIEvent& event);
|
||||
|
||||
protected:
|
||||
#if wxUSE_RICHEDIT
|
||||
bool m_isRich; // Are we using rich text edit to implement this?
|
||||
#endif
|
||||
|
||||
// call this to increase the size limit (will do nothing if the current
|
||||
// limit is big enough)
|
||||
void AdjustSpaceLimit();
|
||||
//
|
||||
// returns true if we increased the limit to allow entering more text,
|
||||
// false if we hit the limit set by SetMaxLength() and so didn't change it
|
||||
bool AdjustSpaceLimit();
|
||||
|
||||
// override some base class virtuals
|
||||
virtual bool MSWShouldPreProcessMessage(WXMSG* pMsg);
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
|
||||
#if wxUSE_RICHEDIT
|
||||
bool m_isRich; // Are we using rich text edit to implement this?
|
||||
#endif
|
||||
|
||||
private:
|
||||
DECLARE_EVENT_TABLE()
|
||||
DECLARE_DYNAMIC_CLASS(wxTextCtrl)
|
||||
|
Reference in New Issue
Block a user