Acutally use the m_maxChars parameter value instead of ignoring it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -567,7 +567,11 @@ void wxGridCellTextEditor::Create(wxWindow* parent,
|
||||
#endif
|
||||
);
|
||||
|
||||
// TODO: use m_maxChars
|
||||
// set max length allowed in the textctrl, if the parameter was set
|
||||
if (m_maxChars != 0)
|
||||
{
|
||||
((wxTextCtrl*)m_control)->SetMaxLength(m_maxChars);
|
||||
}
|
||||
|
||||
wxGridCellEditor::Create(parent, id, evtHandler);
|
||||
}
|
||||
|
Reference in New Issue
Block a user