search for: define_keyword_ctor

Displaying 7 results from an estimated 7 matches for "define_keyword_ctor".

Did you mean: define_keyword_ctors
2006 Dec 02
0
[770] trunk/wxsugar/lib/wx_sugar/keyword_classes.rb: Fix some broken ones (Alex Spelling), add some new & missing ones; add
...in the available WxRuby, the block is run and </span><span class="cx"> # the class may use keyword constructors. If the class is not available, the </span><span class="cx"> # block is ignored. </span><span class="cx"> def self.define_keyword_ctors(klass_name, &block) </span><ins>+ # check this class hasn''t already been defined + if @defined_classes[klass_name] + raise ArgumentError, "Keyword ctor for #{klass_name} already defined" + else + @defined_classes[klass_name] = true + end + &...
2007 Jan 06
0
[836] trunk/wxsugar/lib/wx_sugar: Make :validator and :name sugary ctor args work for Controls classes
...xSplashScreen &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspSplash screen class </span><ins>+# FIXME - this probably won''t work at present because the ''parent'' arg +# comes in a funny place in this class''s ctor +# +# WxSugar.define_keyword_ctors(''SplashScreen'') do +# wx_ctor_params :bitmap => Wx::NULL_BITMAP +# wx_ctor_params :splashstyle, :milliseconds, :id => 1 +# wx_ctor_params :parent => nil +# wx_ctor_params :title => '''' +# wx_ctor_params :pos, :size +# wx_ctor_params :style...
2006 Nov 29
5
wxSugar control problem
I''m using wx_sugar 0.1.2 with wxruby2-preview 0.0.37 on OSX and am coming up with an error when trying to create a SpinCtrl (and quite a few others have exactly the same prob.): #file date_picker.rb class DatePicker < Wx::Dialog def initialize super(nil, :title => "Pick a date...") @cal = Wx::CalendarCtrl.new(self) add(@cal) #works fine up to
2006 Nov 30
0
[764] trunk/wxsugar/lib/wx_sugar/keyword_classes.rb: Correct duplicate and incorrect definition of SpinCtrl constructor
...n class="cx"> </span><del>-# wxScrollBar &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspScrollbar control -# wxSpinButton &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspA spin or ''up-down'' control -WxSugar.define_keyword_ctors(''SpinCtrl'') do - wx_ctor_params :pos, :size, :style => Wx::SP_HORIZONTAL -# wx_ctor_params :validator, :name => ''treeCtrl'' -end - </del><span class="cx"> # wxSpinCtrl &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&a...
2007 Sep 28
1
WxWizard Error
Hey All, Looks like there''s a few bugs with the controls dealing with Wx::Wizard. I''ve gone through it a bit, and seems like there''s some errors beyond what I could fix. An example is: # wxWizard A wizard dialog Wx::define_keyword_ctors(''Wizard'') do wx_ctor_params :title => '''' wx_ctor_params :bitmap => Wx::NULL_BITMAP wx_ctor_params :pos, :size wx_ctor_params :style => Wx::DEFAULT_DIALOG_STYLE end After looking at the SWIG Generated Code, it looks like it generates the Direct...
2007 Apr 26
0
[972] trunk/wxsugar/lib/wx_sugar/keyword_classes.rb: Fix missing keyword param for Wx::Gauge
..._classes.rb&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp2007-04-26 22:20:47 UTC (rev 972) </span><span class="lines">@@ -322,7 +322,7 @@ </span><span class="cx"> # remaining </span><span class="cx"> WxSugar.define_keyword_ctors(''Gauge'') do </span><span class="cx"> wx_ctor_params :range, :pos, :size, :style => Wx::GA_HORIZONTAL </span><del>- wx_ctor_params :validator, :name </del><ins>+ wx_ctor_params :validator, :name => ''gauge'' &...
2006 Dec 26
0
[805] trunk/wxsugar/lib/wx_sugar/keyword_classes.rb: NULL_BITMAP is now defined when wxruby2 is loaded, so dummy def not needed
.../del><span class="cx"> module WxSugar </span><span class="cx"> @defined_classes = {} </span><span class="cx"> </span><span class="lines">@@ -287,7 +280,7 @@ </span><span class="cx"> WxSugar.define_keyword_ctors(''CheckBox'') do </span><span class="cx"> wx_ctor_params :label => '''' </span><span class="cx"> wx_ctor_params :pos, :size, :style </span><del>- # wx_ctor_params :validator, :name => ''check...