search for: adjust_minsize

Displaying 5 results from an estimated 5 matches for "adjust_minsize".

2006 Oct 19
0
[690] trunk/wxruby2/samples/text/unicode.rb: Placed controls within a panel so they appear on the correct themed background
...selected </span><del>- button = Wx::Button.new(self, -1, ''Describe text selection'') </del><ins>+ button = Wx::Button.new(panel, -1, ''Describe text selection'') </ins><span class="cx"> sizer.add(button, 0, Wx::ADJUST_MINSIZE|Wx::ALL, 2 ) </span><span class="cx"> evt_button(button.get_id) { | e | on_click(e) } </span><span class="cx"> </span><del>- @log = LogTextCtrl.new(self) </del><ins>+ @log = LogTextCtrl.new(panel) </ins><span cl...
2008 May 11
4
Choosing a Sizer
...''ve cut''n paste as code: The sizer: sizer = Wx::FlexGridSizer.new( 2, 2, 5, 5) sizer.add_growable_col( 1, 1) sizer.add_growable_row( 1, 1) Three items added: @button = Wx::Button.new(panel, :label => ''Export'') sizer.add(button, 0, Wx::ADJUST_MINSIZE|Wx::ALL, 2 ) @gauge = Wx::Gauge.new(panel, :range => STEPS) sizer.add(@gauge, 0, Wx::GROW|Wx::ALL, 2) @log = LogTextCtrl.new(panel) # (LogTextCtrl < Wx::TextCtrl) sizer.add(@log, 1, Wx::GROW|Wx::ALL, 2) Yvon _______________________________________________ wxruby-users ma...
2004 Nov 22
1
Layout Issue ...
...r.add( @grid, 1, Wx::GROW|Wx::ALL, 5 ) @gridSizer end def createInputSizer @inputSizer = Wx::FlexGridSizer.new( 4, 3 ) st1 = Wx::StaticText.new( @panel, -1, "Text:" ) @inputSizer.add( st1, 0, Wx::ALIGN_CENTER_HORIZONTAL|Wx::ALIGN_CENTER_VERTICAL|Wx::ALL|Wx::ADJUST_MINSIZE, 5 ) @text1 = Wx::TextCtrl.new(@panel, -1, ''Type in here'' ) @inputSizer.add( @text1, 0, Wx::ALIGN_CENTER_HORIZONTAL|Wx::ALIGN_CENTER_VERTICAL|Wx::ALL, 5 ) st2 = Wx::StaticText.new( @panel, -1, "Text:" ) @inputSizer.add( st2, 0, Wx::ALIGN_CENT...
2007 Jul 21
0
[1139] trunk/wxruby2/samples/text/textctrl.rb: Place TextCtrl sample in a panel so gets correct bg color on MSW
...><span class="cx"> </span><del>- button = Wx::Button.new(self, -1, ''Get Info'') </del><ins>+ button = Wx::Button.new(panel, -1, ''Get Info'') </ins><span class="cx"> sizer.add(button, 0, Wx::ADJUST_MINSIZE|Wx::ALL, 2 ) </span><span class="cx"> evt_button(button.get_id) { | e | on_click(e) } </span><span class="cx"> </span><del>- @log = LogTextCtrl.new(self) </del><ins>+ @log = LogTextCtrl.new(panel) </ins><span cl...
2006 Dec 30
0
[809] trunk/wxsugar/lib/wx_sugar/layout.rb: Fix default sizers to arrange_vertically, add padding on specified sides
...plit('','').inject(0) do | l, edge | + l | Wx::const_get(edge.upcase) + end + else + layout = Wx::ALL + end + </ins><span class="cx"> if layout_hints[:minsize] </span><span class="cx"> layout = layout | Wx::ADJUST_MINSIZE|Wx::EXPAND </span><span class="cx"> end </span><span class="lines">@@ -218,9 +229,9 @@ </span><span class="cx"> end </span><span class="cx"> </span><span class="cx"> </span...