search for: align_center_vertical

Displaying 4 results from an estimated 4 matches for "align_center_vertical".

2004 Nov 22
1
Layout Issue ...
...@panel.set_sizer( @topSizer ) @topSizer.fit( @frame ) @frame.show self.main_loop end def createButtonSizer @buttonSizer = Wx::BoxSizer.new( Wx::HORIZONTAL ) @btn1 = Wx::Button.new(@panel, -1, ''Button 1'') @buttonSizer.add(@btn1, 0, Wx::ALIGN_CENTER_VERTICAL|Wx::ALL, 2) @btn2 = Wx::Button.new(@panel, -1, ''Print'') @buttonSizer.add(@btn2, 0, Wx::ALIGN_CENTER_VERTICAL|Wx::ALL, 2) @buttonSizer end def createGridSizer @gridSizer = Wx::BoxSizer.new( Wx::VERTICAL ) @grid = Wx::Grid.new...
2004 Jun 19
4
FlexGridSizer question
=begin I am trying to understand how FlexGridSizer works and I have written a small test application using the latest wxRuby 0.4.0 on Win XP (Home). I cannot get static text ''Week'', ''Day'' and ''Date'' line up above the OK button. I have tried all combinations of ALIGN flags, but I either got the text sticking far too close to the left edge of
2008 May 11
4
Choosing a Sizer
Following alex advices, i''ve used both "text/textctrl.rb" and "etc/threaded.rb" to build my first wxApp. I''ve changed the Sizer type mainly (from "Wx::BoxSizer" to "Wx::FlexGridSizer"). I didn''t find the way to let @log (Wx::TextCtrl) span 2 columns. At the time of writing it''s growing only vertically. And also how to get
2006 Sep 14
2
Patch to fix ArtProvider and ArtProvider sample
These patches better implement ArtProvider and add the demo for it. I also expanded the bigdemo window a little bit. I really think we should go larger but I suppose there might be some people at 800x600 still. Note that creating your own art provider still doesn''t quite work correctly. I didn''t have time to get into that. The RubyConstants.i.patch file looks weird. Not