search for: next_base

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

Did you mean: new_base
2004 Aug 25
7
problem subclassing Wx::Menu
...o, perhaps someone could check that I''m doing the passing around of event-handling blocks correctly ... unfortunately I can''t get that far yet ... cheers alex -------------- next part -------------- require ''wxruby'' class EasyMenu < Wx::Menu def EasyMenu.next_base() @base_range ||= 0 @base_range += 100 end def initialize(target) @target = target @base_id = EasyMenu.next_base() @commands = {} end # adds a menu item with the title +command_str+, optionally bound to # the shortcut key +command_key+, and binds the menu item to...