search for: static_box

Displaying 1 result from an estimated 1 matches for "static_box".

2007 Dec 28
4
static box sizing problems
...xStaticBox. 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 | ALL, 4) set_sizer(lr_sizer) layout() This code runs and gives almost what I want. The text appears on the left and the static box on t...