From 46a5010a06b09318878c33a0a6a532f419ea063d Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 14 May 2003 20:50:55 +0000 Subject: [PATCH] Acutally use the m_maxChars parameter value instead of ignoring it git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/grid.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 3e38c3085c..d1cd40d895 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -575,7 +575,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); } -- 2.50.0