Displaying 1 result from an estimated 1 matches for "static_box_sizer".
2006 Apr 23
5
Re: StaticBoxSizer bug?
...gt;
> panel = Wx::Panel.new(self, Wx::ID_ANY)
> box_sizer = Wx::BoxSizer.new(Wx::HORIZONTAL)
> box = Wx::StaticBox.new(panel, Wx::ID_ANY, ''Box Title'')
> text = Wx::StaticText.new(panel, Wx::ID_ANY, ''Some text!'')
> static_box_sizer = Wx::StaticBoxSizer.new(box, Wx::VERTICAL)
>
> static_box_sizer.add(text, 1, Wx::EXPAND | Wx::ALL, 16)
> box_sizer.add(static_box_sizer, 1, Wx::EXPAND | Wx::ALL, 16)
> panel.set_sizer_and_fit(box_sizer)
> end
> end
>
> class SizerTestApp < Wx::App
> de...