search for: background_colour

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

Did you mean: background_color
2010 Sep 09
1
Wx::Grid and motion events, bug?
...strates the problem: - -------------------------------------------------------------- #!/usr/bin/env ruby #Encoding: UTF-8 require "wx" class MyFrame < Wx::Frame include Wx def initialize(parent = nil) super(parent, title: "Test", size: Size.new(400, 400)) self.background_colour = NULL_COLOUR StaticText.new(self, label: "") #Dummy @grid = Grid.new(self, size: Size.new(300, 200)) @grid.create_grid(10, 10) @grid.evt_motion{|e| p "!"; $stdout.flush} end end class MyApp < Wx::App include Wx def on_init @mainwindow = MyFrame....
2007 Sep 27
10
Adding more sugar to wxSugar
Hi all, New wxRuby event handling offers the choice between using blocks or methods seamlessly and easily. This is great respectively for simple app and more complex app. Nevertheless, currently the creation of an application, a frame, or a dialog is very tedious for simple app : - you need to create a subclass of Wx::App, Wx::Frame ... - you need to put the initialization code in the initialize
2007 Apr 03
0
[946] trunk/wxsugar/samples/sugar-sample.rb: Illustrate enumerable_controls and has_style
...</span><span class="lines">@@ -18,9 +18,12 @@ </span><span class="cx"> add( Wx::Panel, :proportion => 1 ) do | panel | </span><span class="cx"> # a text control </span><span class="cx"> panel.background_colour = Wx::Colour.new(200, 150, 100) </span><del>- panel.add( Wx::TextCtrl[ :value => ''initial value'', </del><ins>+ tx = panel.add( Wx::TextCtrl[ :value => ''initial value'', </ins><span class="cx">...
2006 Sep 07
2
A little bit of sugar
Hi Do a search on ''wxruby'' and you''ll see that people''s main gripes are 1) stability 2) development progress 3) documentation and 4) syntax. We''re making great progress on 1-3 so thought it seemed like a good time to start looking at 4). So here''s announcing a first release of WxSugar. It can be downloaded via gems (gem install wx_sugar)