Displaying 10 results from an estimated 10 matches for "align_centr".
Did you mean:
align_centre
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
2007 Mar 20
0
[903] branches/wxruby2/wxwidgets_282/samples: Added #!/usr/bin/env ruby to the grid sample.
...id( 20, 12 )
- @grid.set_default_cell_background_colour(Wx::WHITE)
- # We can set the sizes of individual rows and columns
- # in pixels, and the label value string
- @grid.set_row_size( 0, 60 )
- @grid.set_row_label_value( 0, "Row1" )
- @grid.set_row_label_alignment(Wx::ALIGN_CENTRE, Wx::ALIGN_CENTRE)
-
- @grid.set_col_size( 0, 120 )
- @grid.set_col_label_value( 0, "Col1" )
- @grid.set_col_label_alignment(Wx::ALIGN_CENTRE, Wx::ALIGN_CENTRE)
-
- # And set grid cell contents as strings
- @grid.set_cell_value( 0, 0, "wxGrid is good" )
-...
2007 Feb 14
0
[875] trunk/wxruby2/samples: Add expanded grid sample
...id( 20, 12 )
+ @grid.set_default_cell_background_colour(Wx::WHITE)
+ # We can set the sizes of individual rows and columns
+ # in pixels, and the label value string
+ @grid.set_row_size( 0, 60 )
+ @grid.set_row_label_value( 0, "Row1" )
+ @grid.set_row_label_alignment(Wx::ALIGN_CENTRE, Wx::ALIGN_CENTRE)
+
+ @grid.set_col_size( 0, 120 )
+ @grid.set_col_label_value( 0, "Col1" )
+ @grid.set_col_label_alignment(Wx::ALIGN_CENTRE, Wx::ALIGN_CENTRE)
+
+ # And set grid cell contents as strings
+ @grid.set_cell_value( 0, 0, "wxGrid is good" )
+...
2004 Dec 09
6
Scrolling to the bottom of a Grid
Hi,
Thanks to the newly added event handlers for Wx::Grid in the 0.6.0
release, I can now provide a much slicker intreface to my "data widgets"
which heavily rely on that control.
However, I haven''t quite figured out how to programmatically scroll to
the last row of a populated grid (actually, the first empty row). So
say that I have a grid with 200 rows only 20 of which
2006 Oct 19
0
[691] trunk/wxruby2/samples/calendar/calendar.rb: Placed controls within a panel so they appear on the correct themed background
...t;/span><span class="cx">
</span><span class="cx"> def configure_window
</span><del>- @sizer.add(@calendar, 0)
- @sizer.add(@date, 1)
- @sizer.set_size_hints(self)
</del><ins>+ @sizer.add(@calendar, 0, Wx::ALIGN_CENTRE|Wx::ALL, 5)
+ @sizer.set_size_hints(@panel)
</ins><span class="cx"> layout
</span><del>- set_sizer(@sizer)
</del><ins>+ @panel.set_sizer(@sizer)
+ set_best_fitting_size
</ins><span class="cx">...
2007 Apr 13
0
[952] branches/wxruby2/wxwidgets_282/doc/textile/gridcellattr.txtl: Doc fix from Wx 2.8
...;
</span><span class="cx"> *set_alignment*(%(arg-type)Integer% hAlign, %(arg-type)Integer% vAlign)
</span><span class="cx">
</span><del>-Sets the alignment.
</del><ins>+Sets the alignment. hAlign can be one of @ALIGN_LEFT@,
+@ALIGN_CENTRE@ or @ALIGN_RIGHT@ and vAlign can be one
+of @ALIGN_TOP@, @ALIGN_CENTRE@ or @ALIGN_BOTTOM@.
</ins><span class="cx">
</span><ins>+
</ins><span class="cx"> h3(#GridCellAttr_setreadonly). GridCellAttr#set_read_only
</span><span class=&q...
2007 Jul 23
11
Memory problem with GridCell*Editor
Alex,
I was getting the following crashes when editing cells in a grid:
./init.rb:1072:in `main_loop'': undefined method `begin_edit'' for
"_p_wxEvent":String (NoMethodError)
from ./init.rb:1072
but only after the first App GC mark phase.
So I changed all the GridCell*Editor.i files from GC_MANAGE to
GC_MANAGE_AS_EVENT. Which stopped the crashing. My question
2008 Mar 18
14
Proposal for an improved API for Sizer (and ToolBar)
Hi all,
This is a proposal for supporting keyword arguments to Sizer#add
following the thread below :
http://rubyforge.org/pipermail/wxruby-development/2008-March/001244.html
After a deeper look at lib/wx/keyword_ctors.rb and
lib/wx/keyword_defs.rb, I understood the whole thing :-).
I just reused and modified slightly the method args_as_list.
The new Sizer#add_item combines the features of add
2007 Feb 12
0
[864] trunk/wxruby2/samples/calendar/calendar.rb: Fix a couple of errors, add a note on CalendarDateAttr
...lt;/span><span class="cx"> end
</span><del>- @calendar = MyCalendar.new(self, date, style)
</del><ins>+ @calendar = MyCalendar.new(@panel, self, date, style)
</ins><span class="cx"> @sizer.add(@calendar, 0, Wx::ALIGN_CENTRE|Wx::ALL, 5)
</span><span class="cx"> layout
</span><span class="cx"> end
</span><span class="lines">@@ -241,21 +240,26 @@
</span><span class="cx"> if on
</span><span class="cx&qu...
2007 Mar 22
0
[916] branches/wxruby2/wxwidgets_282: More Wx::AUI classes, event hooks and sample
...:ID_ANY)
+ flex = Wx::FlexGridSizer.new( 2 )
+ flex.add_growable_row( 0 )
+ flex.add_growable_row( 3 )
+ flex.add_growable_row( 1 )
+
+ flex.add( 5, 5 )
+ flex.add( 5, 5 )
+ flex.add( Wx::StaticText.new( panel, -1, "Wx::TextCtrl:" ),
+ 0, Wx::ALL|Wx::ALIGN_CENTRE, 5 )
+ flex.add( Wx::TextCtrl.new( panel, -1, "",
+ Wx::DEFAULT_POSITION, Wx::Size.new(100,-1) ),
+ 1, Wx::ALL|Wx::ALIGN_CENTRE, 5 )
+
+ flex.add( Wx::StaticText.new( panel, -1, "Wx::SpinCtrl:" ),
+ 0, Wx::ALL|Wx...