wxTextCtrl width

3 views
Skip to first unread message

Kenneth Porter

unread,
Nov 18, 2009, 12:22:04 PM11/18/09
to wx-u...@googlegroups.com
What governs the width of a wxTextCtrl within a box sizer when its default
size is (-1,-1)? I've got some that show all of the digits of a floating
point number inside and one that's very narrow, showing just a couple
digits. I'm guessing the box doesn't resize to accomodate the number within
if it starts out very small.

Leslie Newell

unread,
Nov 18, 2009, 5:51:51 PM11/18/09
to wx-u...@googlegroups.com
If you don't use the expand flag then it will size to fit it's text when
the sizer is laid out. In Windows I think it just defaults to one fixed
size.

Les

Reply all
Reply to author
Forward
0 new messages