search for: ondocancel

Displaying 1 result from an estimated 1 matches for "ondocancel".

Did you mean: cond_cancel
2004 Jun 19
4
FlexGridSizer question
...button.evt_button(Wx::ID_OK){|event| onDoOK()} sizer.add(button, 0, Wx::SOUTH|Wx::WEST|Wx::EAST, 10) button = Wx::Button.new(self, Wx::ID_CANCEL, ''Cancel'', Wx::Point.new(0,0),Wx::Size.new(70,25)) button.evt_button(Wx::ID_CANCEL){|event| onDoCancel()} sizer.add(button, 0, Wx::SOUTH|Wx::EAST, 10) self.set_sizer(sizer) sizer.set_size_hints(self) sizer.fit(self) end def onDoOK() end_modal(Wx::ID_OK) end def onDoCancel() end_modal(Wx::ID_CANCEL) end end class MyApp < Wx::App def on_init...