search for: onbutton

Displaying 3 results from an estimated 3 matches for "onbutton".

Did you mean: okbutton
2004 Jun 11
9
Handling Events that don''t take an ID
Hey Kevin, Am I correct in assuming that if I want a particular widget to respond to an event which doesn''t take an ID as an argument (like evt_size or evt_left_down), that I have to inherit a new widget and define the event handler within the inherited class? Here''s a little contrived code example to illustrate what I mean: class MyCtrl < Wx::TextCtrl def
2005 Sep 18
3
Free
In the dialogs.rb sample, when you click the delete button you get: C:/RubyDev/wxruby2/samples/dialogs/dialogs.rb:61:in `onButton'': undefined method `free'' for #<Wxruby2::Button:0x36474b8> (NoMethodError) Should all/some wxObjects have a free function? how do we intend to handle this?
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.
...class="cx"> </span><del>- @m_btnFocused.set_focus() - @m_btnFocused.set_default() </del><ins>+ @btn_focused.set_focus() + @btn_focused.set_default() </ins><span class="cx"> </span><del>- evt_button(-1) {|event| onButton(event) } </del><ins>+ evt_button(-1) {|event| on_button(event) } </ins><span class="cx"> end </span><span class="cx"> </span><del>- def onButton(event) </del><ins>+ def on_button(event) </ins><span clas...