minimal wxTextCtrl
Posted: Mon Jul 20, 2009 3:04 pm
I want a wxTextCtrl with a minimal width. It should only be possible to display 3 characters in it.
But I am not able to decrease the with that way.
Just example code
SetWidth() has no effect. Setting it to 1000 has no effect, too.
I want to modify the width of a wxTextCtrl. How can I do that?
But I am not able to decrease the with that way.
Just example code
Code: Select all
wxTextCtrl* pCtrl = new wxTextCtrl(this, wxID_ANY);
wxSize size = pCtrl->GetSize();
size.SetWidth(20); // just 20 pixel for example
pCtrl->SetMinSize(size);
I want to modify the width of a wxTextCtrl. How can I do that?