Dear all, is it possible to get widget from its id? to be clear, what I intent to do is something like below def widget_by_id_do_something(widget_id) widget(widget_id).do_something end -- Suka linux? Kunjungi blog saya http://penguinroad.blogspot.com _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
Alex Fenton
2009-Dec-14 19:14 UTC
[wxruby-users] is it possible to get widget from it''s id
hi hendra kusuma wrote:> is it possible to get widget from its id?Yes, Wx:Window.find_by_id http://wxruby.rubyforge.org/doc/window.html#Window_findwindowbyid It''s documented as an instance method, but I think it''s a class method: win = Wx::Window.find_by_id(ID_FOO) alex
hendra kusuma
2009-Dec-15 04:48 UTC
[wxruby-users] is it possible to get widget from it''s id
On Tue, Dec 15, 2009 at 2:14 AM, Alex Fenton <alex at pressure.to> wrote:> hi > > > hendra kusuma wrote: > > is it possible to get widget from its id? >> > > Yes, Wx:Window.find_by_id > > http://wxruby.rubyforge.org/doc/window.html#Window_findwindowbyid > > It''s documented as an instance method, but I think it''s a class method: > > win = Wx::Window.find_by_id(ID_FOO) > > alex > >Whoa, cool Thanks man -- Suka linux? Kunjungi blog saya http://penguinroad.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/wxruby-users/attachments/20091215/27d4de46/attachment.html>