I am trying to write a network address interface, and I cannot seem to get the wxTextCtrl widget to be smaller than ~100px wide. I am using wxGlade 0.3.5.1 to create the interface, however I'm not averse to modifiying it in dev-cpp.
Here's the wrong way:
And here's the right way:
Interestingly enough, the right way is how wxGlade displays the editable interface mockup, however the text isn't centered like it should be. The wrong way is how wxGlade's preview and the compiled version look, text is centered correctly, size is not correct.
To get the narrow width, I explicitly set the size to 30, 21 I have found no other way to get the size smaller in any view. I've tried playing with sizers and spacers, and haven't found anything that does anything to change the minimum size of the TextCtrl.
Heeeeelp!
Thanks,
Leeman
Help with wxTextCtrl
Help with wxTextCtrl
Dev-C++ 4.9.9.2
wxWidgets 2.6.1
wxGlade 0.3.5.1
WinXP SP2 (+all)
wxWidgets 2.6.1
wxGlade 0.3.5.1
WinXP SP2 (+all)
- Ryan Norton
- wxWorld Domination!
- Posts: 1319
- Joined: Mon Aug 30, 2004 6:01 pm
Got it solved, I had been using sizers and still am, just a matter of not being afraid to use alot of sizers.
I was previousy using a wxFlexGridSizer and for the address fields a horizontal wxBoxSizer with 7 fields (4 octets, 3 labels of ".").
Now it's a virtical wxBoxSizer containing 2 wxFlexGridSizer's. The top one contains the DHCP options, the bottom contains all the address fields and labels.
That's it. Apparently nothing to it.
I was previousy using a wxFlexGridSizer and for the address fields a horizontal wxBoxSizer with 7 fields (4 octets, 3 labels of ".").
Now it's a virtical wxBoxSizer containing 2 wxFlexGridSizer's. The top one contains the DHCP options, the bottom contains all the address fields and labels.
That's it. Apparently nothing to it.
Dev-C++ 4.9.9.2
wxWidgets 2.6.1
wxGlade 0.3.5.1
WinXP SP2 (+all)
wxWidgets 2.6.1
wxGlade 0.3.5.1
WinXP SP2 (+all)