Displaying 1 result from an estimated 1 matches for "lr_sizer".
Did you mean:
hr_size
2007 Dec 28
4
static box sizing problems
...want the left side to stretch proportionally and I want the right
side to be of a fixed width. Moreover, I want to enclose the right side in
a wxStaticBox.
I happen to be using wxRuby, but the code should be understandable to C++
programmers. This is in the constructor of my frame subclass:
lr_sizer = BoxSizer.new( HORIZONTAL )
txt = StaticText.new (self, -1, "Text Left")
lr_sizer.add(txt, 1, EXPAND | ALL, 4)
static_box = StaticBox.new(self, -1, "Static Box")
right_sizer = StaticBoxSizer.new( static_box, VERTICAL )
lr_sizer.add(right_sizer, 0, EXPAND...