Displaying 1 result from an estimated 1 matches for "easymenu".
2004 Aug 25
7
problem subclassing Wx::Menu
...20. Am I doing something stupid?
Also, 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 +co...