noreply at rubyforge.org
2006-Dec-06 19:13 UTC
[Wxruby-development] [ wxruby-Bugs-7131 ] Stock colours (eg Wx::WHITE) are not available before App#on_init
Bugs item #7131, was opened at 2006-12-06 19:13 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=7131&group_id=35 Category: Incorrect behavior Group: None Status: Open Resolution: None Priority: 3 Submitted By: Alex Fenton (brokentoy) Assigned to: Kevin Smith (qualitycode) Summary: Stock colours (eg Wx::WHITE) are not available before App#on_init Initial Comment: The stock colour constants eg Wx::WHITE, Wx::BLUE are initialized by a call to wxInitializeStockObjects in %init of Wx::App (see swig/App.i) However, this means they are only available after an application is started. In the old wxruby 0.6.0 they were available as soon as the wxruby library was loaded, so presumably it can be done. This is a problem because it means that code like this doesn''t work any more: class MyTextCtrl < Wx::TextCtrl DEFAULT_FOREGROUND_COLOUR = Wx::GREEN ... end b/c the ruby class is evaluated before the app is started. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=7131&group_id=35
Seemingly Similar Threads
- [804] trunk/wxruby2/swig: Initialise stock colours (eg Wx::RED), pens and brushes when wxruby2 is
- [ wxruby-Bugs-11708 ] Wx::TreeCtrl#on_compare_items can not work
- [ wxruby-Bugs-10759 ] Wx::AuiManager.get_all_panes can not get all pane.
- [ wxruby-Bugs-7386 ] Setting Gauge background/foreground colours in wxruby2-preview
- [ wxruby-Bugs-11446 ] Wx::TextCtrl behaves wrong when scrolling