Displaying 4 results from an estimated 4 matches for "set_sizer_and_fit".
2007 Apr 04
1
wx layout with sugar
I''m sure this will be user error on my part, but I can''t seem to get the
following to layout properly.
Basically, I want the p1 to fill the available space and p2 to be as small
as possible (with the root panel filling all the available space). With
the following code, the buttons in the p2 end up being truncated, (i.e.
the bottom line is missing).
Where am I going
2007 Apr 16
0
[969] branches/wxruby2/wxwidgets_282/doc/textile/window.txtl: Cleanup and fixing of broken links.
...t;<span class="cx"> h4. Parameters
</span><span class="cx">
</span><span class="lines">@@ -2531,7 +2528,7 @@
</span><span class="cx">
</span><span class="cx"> h3(#Window_setsizerandfit). Window#set_sizer_and_fit
</span><span class="cx">
</span><del>- *set_sizer_and_fit*(%(arg-type)Sizer% sizer, %(arg-type)Boolean% deleteOld=true)
</del><ins>+ *set_sizer_and_fit*(%(arg-type)Sizer% sizer, %(arg-type)Boolean% deleteOld=true)
</ins><span class="cx...
2007 Mar 18
0
[894] branches/wxruby2/wxwidgets_282/doc/textile/window.txtl: Document changed Window methods in 2.6 -> 2.8 API
...uot;lines">@@ -213,7 +210,6 @@
</span><span class="cx"> * "Window#set_size_hints":#Window_setsizehints
</span><span class="cx"> * "Window#set_sizer":#Window_setsizer
</span><span class="cx"> * "Window#set_sizer_and_fit":#Window_setsizerandfit
</span><del>-* "Window#set_title":#Window_settitle
</del><span class="cx"> * "Window#set_theme_enabled":#Window_setthemeenabled
</span><span class="cx"> * "Window#set_tool_tip":#Window...
2006 Apr 23
5
Re: StaticBoxSizer bug?
...= 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
> def on_init
> frame = SizerTestFrame.new(nil, Wx::ID_ANY, ''Test'')
> frame.show
> end
> end
>
> SizerTestApp.new.main_loop
>
> --------------------------------------...