Displaying 1 result from an estimated 1 matches for "fancy_bitmap".
2008 May 26
0
[ wxruby-Feature Requests-20367 ] wxToolBarTool (wxToolBarToolBase) missing, thus anti-OO
...akes it anti-OO and thus less rubyesque to manage toolbars.
Toolbars are the last component (as I''v seen) that requires concrete ID''s. This is a pain to handle in ruby. We want objects (propaganda).
Example:
tb = Wx::Toolbar.new(frame)
tb.add_tool(1000, "Click me", fancy_bitmap)
tb.add_tool(1001, "Don''t click here", fancy_bitmap)
evt_tool(1000) { puts "Great job" }
evt_tool(1001) { puts "I warned you" }
Those IDs: 1000, 1001 may clash with other toolbars on the same frame. For a fixed app this may be not a great problem, but...