search for: set_background_colour

Displaying 20 results from an estimated 21 matches for "set_background_colour".

2006 Aug 24
5
TreeCtrl background?
...alize(title) super(nil, -1, title) @top_sizer = BoxSizer.new( Wx::VERTICAL ) @panel = Panel.new(self) @panel.set_auto_layout(true) @panel.set_sizer(@top_sizer) @test_text_ctrl = TextCtrl.new(@panel, -1, "") style = @test_text_ctrl.get_default_style() style.set_background_colour(WHITE) @test_text_ctrl.set_default_style(style) @top_sizer.add(@test_text_ctrl, 0, Wx::EXPAND | Wx::RIGHT, 20) end end class MyApp < App def on_init() frame = MyFrame.new("TextCtrl Test") frame.show(TRUE) end end $g_app = MyApp.new $g_app.main_loop() This is...
2006 Dec 03
0
[778] trunk/wxruby2: Remove broken and deprecated LayoutConstraints, update samples & docs
...9;' - require ''wx'' - rescue LoadError - raise no_wx_err - end -end - -class TestLayoutConstraints < Wx::Panel - def initialize(parent) - super(parent, -1) - set_auto_layout(true) - evt_button(100) {|event| on_button(event)} - - set_background_colour(Wx::Colour.new("MEDIUM ORCHID")) - - @panelA = Wx::Window.new(self, -1, Wx::DEFAULT_POSITION, Wx::DEFAULT_SIZE, Wx::SIMPLE_BORDER) - @panelA.set_background_colour(Wx::BLUE) - txt = Wx::StaticText.new(@panelA, -1, "Resize the window and see\nwhat happens.....
2007 May 28
8
sash position problem
Hi, I''ve written a small app implementing SplitterWindow and have a problem with specifying the sash position on Windows. At the moment, I call split_vertically and pass it a positive integer for position. This works as expected on FreeBSD and Linux (Ubuntu and Debian), but seems to have no effect on Windows. Is there something particular I need to be doing to get this to work on
2007 Apr 13
0
[952] branches/wxruby2/wxwidgets_282/doc/textile/gridcellattr.txtl: Doc fix from Wx 2.8
...+76,30 @@ </span><span class="cx"> </span><span class="cx"> Sets the text colour. </span><span class="cx"> </span><ins>+ </ins><span class="cx"> h3(#GridCellAttr_setbackgroundcolour). GridCellAttr#set_background_colour </span><span class="cx"> </span><span class="cx"> *set_background_colour*(%(arg-type)Colour% colBack) </span><span class="cx"> </span><span class="cx"> Sets the background colour. </span><span class...
2006 Dec 14
5
wxruby2-preview Gauge and wx-sugar with SplitterWindow
First of all, just wanted to say big thanks for all the great work on wxruby2 .. I''ve been a user of 0.6 for a long time and its proved very useful over the years. It''s great to finally have a multi-platform, gem installable ui toolkit that doesn''t suck! Secondly, thanks also for wx-sugar. I was drowning in sizers and started to write my own layout library ... but
2008 May 23
3
Rss-wxruby
Bonjour Alex. J''ai créer une application(Rss-wxruby) et je l''ai déposée en téléchargement sur le site "Tom''s guide". Ils ont créer les screenshots, et la problème: Il y a des carrés qui ressortent de partout??? Voilà un url pour l''exemple du problème avec les carrés qui ressortent:
2007 Aug 10
0
[ wxruby-Bugs-12962 ] Wx::ListCtrl setting text or background colour doesn''t work on Windows
...Summary: Wx::ListCtrl setting text or background colour doesn''t work on Windows Initial Comment: In the bigdemo "class TestVirtualList < Wx::ListCtrl" contains the setting of the colour attributes for items in the list: @attr2 = Wx::ListItemAttr.new() @attr2.set_background_colour(Wx::Colour.new("LIGHT BLUE")) Except this doesn''t work, the items are displayed black on white. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=12962&group_i...
2006 Aug 24
0
Re: TextCtrl background? (was TreeCtrl background?)
...> @top_sizer = BoxSizer.new( Wx::VERTICAL ) > @panel = Panel.new(self) > @panel.set_auto_layout(true) > @panel.set_sizer(@top_sizer) > @test_text_ctrl = TextCtrl.new(@panel, -1, "") > > style = @test_text_ctrl.get_default_style() > style.set_background_colour(WHITE) > @test_text_ctrl.set_default_style(style) > > > @top_sizer.add(@test_text_ctrl, 0, Wx::EXPAND | Wx::RIGHT, 20) > end > end > > class MyApp < App > def on_init() > frame = MyFrame.new("TextCtrl Test") > frame.show(TRUE) >...
2007 Jan 03
0
[823] trunk/wxruby2/doc/textile: Remove docs for some deprecated classes
...e_tab_control":#TabView_oncreatetabcontrol -* "TabView#layout_tabs":#TabView_layouttabs -* "TabView#on_event":#TabView_onevent -* "TabView#on_tab_activate":#TabView_ontabactivate -* "TabView#on_tab_pre_activate":#TabView_ontabpreactivate -* "TabView#set_background_colour":#TabView_setbackgroundcolour -* "TabView#set_highlight_colour":#TabView_sethighlightcolour -* "TabView#set_horizontal_tab_offset":#TabView_sethorizontaltaboffset -* "TabView#set_selected_tab_font":#TabView_setselectedtabfont -* "TabView#set_shadow_colour&quo...
2007 Apr 27
1
panel as child of grid on Windows
...(self, -1, Wx::DEFAULT_POSITION, Wx::Size.new (400,400)) grid.create_grid( 2, 2 ) panel = GridChildPanel.new(self, -1, pos, Wx::Size.new (100,100)) end end class GridChildPanel < Wx::Panel def initialize(parent, id, pos, size) super(parent, id, pos, size) set_background_colour(Wx::GREEN) button = Wx:: Button.new(self, -1, ''Push me'') end end app = MainApp.new app.main_loop() _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2006 Nov 13
7
[736] trunk/wxruby2/samples/dialogs/dialogs.rb: Fixed crashing bug in on_paint and made the code style more Ruby like.
...3,14 @@ </span><span class="cx"> if dialog.show_modal() == ID_OK </span><span class="cx"> retData = dialog.get_colour_data() </span><span class="cx"> col = retData.get_colour() </span><del>- $myCanvas.set_background_colour(col) - #$myCanvas.clear() - $myCanvas.refresh() </del><ins>+ $my_canvas.set_background_colour(col) + #$my_canvas.clear() + $my_canvas.refresh() </ins><span class="cx"> end </span><span class="cx"> end </span&g...
2007 Apr 30
0
[997] branches/wxruby2/wxwidgets_282: Window - 2.6 -> 2.8 API, new methods and deprecations; update doc
...cx"> * "Window#line_down":#Window_linedown </span><span class="lines">@@ -178,19 +189,14 @@ </span><span class="cx"> * "Window#set_auto_layout":#Window_setautolayout </span><span class="cx"> * "Window#set_background_colour":#Window_setbackgroundcolour </span><span class="cx"> * "Window#set_background_style":#Window_setbackgroundstyle </span><del>-* "Window#set_best_fitting_size":#Window_setbestfittingsize </del><ins>+* "Window#set_initial_siz...
2007 May 04
0
[1009] trunk/wxruby2/samples/treectrl/treectrl.rb: ok method name changed to is_ok
...ss="cx"> return </span><span class="cx"> col = Wx::get_colour_from_user(self, @treectrl.get_background_colour()) </span><del>- if col.ok() </del><ins>+ if col.is_ok </ins><span class="cx"> @treectrl.set_background_colour(col) </span><span class="cx"> end </span><span class="cx"> end </span></span></pre> </div> </div> </body> </html>
2007 Mar 29
0
[930] branches/wxruby2/wxwidgets_282/samples/controls/controls.rb: ok -> is_ok method rename
...quot;cx"> # test panel colour changing and propagation to the subcontrols </span><del>- if @s_colOld.ok() </del><ins>+ if @s_colOld.is_ok() </ins><span class="cx"> </span><span class="cx"> set_background_colour(@s_colOld) </span><span class="cx"> @s_colOld = NULL_COLOUR </span></span></pre> </div> </div> </body> </html>
2007 Mar 20
0
[903] branches/wxruby2/wxwidgets_282/samples: Added #!/usr/bin/env ruby to the grid sample.
...# We can specify the some cells will store numeric - # values rather than strings. Here we set grid column 6 - # to hold floating point values displayed with width - # of 2 and precision of 2. The column is highlighted in light grey - cell_attr = Wx::GridCellAttr.new - cell_attr.set_background_colour( Wx::LIGHT_GREY ) - cell_attr.set_renderer( Wx::GridCellFloatRenderer.new(2, 2) ) - - @grid.set_col_attr(5, cell_attr) - @grid.set_cell_value(0, 5, "3.1415") - @grid.set_cell_value(0, 6, - "The whole column to the left uses float format") -...
2007 Apr 28
0
[978] branches/wxruby2/wxwidgets_282/samples/bigdemo/wxScrolledWindow.rbw: Fix crazy crashers on MSW; fix scrolling/drawing position; safe path to bitmap
...+++ branches/wxruby2/wxwidgets_282/samples/bigdemo/wxScrolledWindow.rbw&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp2007-04-28 23:54:46 UTC (rev 978) </span><span class="lines">@@ -26,7 +26,8 @@ </span><span class="cx"> set_background_colour(Wx::WHITE) </span><span class="cx"> </span><span class="cx"> set_cursor(Wx::Cursor.new(Wx::CURSOR_PENCIL)) </span><del>- @bmp = Wx::Bitmap.new("./icons/test2.xpm") </del><ins>+ bmp_file = F...
2007 Feb 14
0
[875] trunk/wxruby2/samples: Add expanded grid sample
...# We can specify the some cells will store numeric + # values rather than strings. Here we set grid column 6 + # to hold floating point values displayed with width + # of 2 and precision of 2. The column is highlighted in light grey + cell_attr = Wx::GridCellAttr.new + cell_attr.set_background_colour( Wx::LIGHT_GREY ) + cell_attr.set_renderer( Wx::GridCellFloatRenderer.new(2, 2) ) + + @grid.set_col_attr(5, cell_attr) + @grid.set_cell_value(0, 5, "3.1415") + @grid.set_cell_value(0, 6, + "The whole column to the left uses float format") +...
2007 Jun 26
0
[1082] trunk/wxruby2/doc/textile/hyperlinkctrl.txtl: Added HyperlinkCtrl and HyperlinkEvent documentation
...f that event is not handled (or it''s skipped; see +"Event#skip":event.html#Event_skip), then a call to +"LaunchDefaultBrowser":launchdefaultbrowser.html is done with the +hyperlink''s URL. + +Note that standard "Window":window.html functions like "set_background_colour":#HyperlinkCtrl_setbackgroundcolour, "set_font":#HyperlinkCtrl_setfont, "set_cursor":#HyperlinkCtrl_setcursor, "set_label":#HyperlinkCtrl_setlabel can be used to customize appearance of the hyperlink. + + +h2. Derived from + +"Control":control.html + +&q...
2006 Aug 03
6
evt_scrollwin_thumbtrack/GetPosition?
I am attempting to create a scrollable panel. This works fine for using the scroll arrows, as I am capturing the event and then incrementing the scroll pos by the desired amount. However, it is not working on thumbtracking. I capture the event successfully, but I am unable to capture the position of the thumb tracker. I have looked at the poor man''s doc and have been unable to figure
2006 Nov 15
0
[740] trunk/wxruby2: API - Make ListCtrl#get_item return a ListCtrl item corresponding to a row and
...<span class="cx"> list.insert_item(0, ''line0:column0'') </span><span class="lines">@@ -32,12 +32,10 @@ </span><span class="cx"> item.set_font(Wx::ITALIC_FONT) </span><span class="cx"> item.set_background_colour(Wx::LIGHT_GREY) </span><span class="cx"> list.set_item( item ) </span><del>- </del><ins>+ </ins><span class="cx"> # test of get_item method </span><span class="cx"> 0.upto(2) do |i| </span&g...