Displaying 2 results from an estimated 2 matches for "mytextctrl".
Did you mean:
m_ptextctrl
2003 Dec 13
1
widget hierarchy - program variables
Hi!
During developing my little program, I''ve noticed, that the objects have
a hierarchy, but now I don''t know what to do, if a widget initiates an
event which has an effect to the parent, grandfather/brother/other
relatives.
Is there a tutorial for this aspect?
Gergo
--
+-[ Kontra, Gergely<kgergely@mcl.hu> PhD student Room IB113 ]---------+
|
2006 Dec 06
0
[ wxruby-Bugs-7131 ] Stock colours (eg Wx::WHITE) are not available before App#on_init
...ig/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&...