search for: bmp_butt

Displaying 2 results from an estimated 2 matches for "bmp_butt".

2007 Mar 23
0
[918] branches/wxruby2/wxwidgets_282/samples/aui/aui.rb: Fix a couple of little bugs and typos
...x::BoxSizer.new(Wx::HORIZONTAL) </span><span class="cx"> sz.add(1, 1, 1, Wx::EXPAND) </span><span class="cx"> sz.add( Wx::StaticText.new(self, Wx::ID_ANY, caption) ) </span><del>- sz.add(@cap_grad) </del><ins>+ sz.add(bmp_butt) </ins><span class="cx"> sz.add(1, 1, 1, Wx::EXPAND) </span><span class="cx"> sz.set_item_min_size(1, 180, 20) </span><span class="cx"> return bmp_butt, sz </span><span class="lines">@@ -532,7 +533,7...
2007 Mar 22
0
[916] branches/wxruby2/wxwidgets_282: More Wx::AUI classes, event hooks and sample
...ID_ANY, caption) ) + sz.add(sp) + sz.add(1, 1, 1, Wx::EXPAND) + sz.set_item_min_size(1, 180, 20) + return sp, sz + end + + # utility to make a little captioned button; + # returns the button and a sizer containing the button and caption + def make_colour_button(an_id, caption) + bmp_butt = Wx::BitmapButton.new( self, an_id, @base_bmp, + Wx::DEFAULT_POSITION, + Wx::Size.new(50, 25) ) + + sz = Wx::BoxSizer.new(Wx::HORIZONTAL) + sz.add(1, 1, 1, Wx::EXPAND) + sz.add( Wx::StaticText.new(self, Wx::ID_ANY,...