Hello,
I''m trying to use a wxMenuBar from XRC built with DialogBlocks on
Windows.
My first example had the menu being called from the Frame because I
couldn''t figure out
how to call the menu from my XRC. Shortcuts worked nicely.
Example 1:
menu.append(Wx::ID_EXIT, "E&xit\tAlt-X", "Quit this
program")
tool.append(Wx::ID_PHOTO, "&MS Picture Manager\tAlt-B", "MS
Picture Manager")
Now that I''ve figured this out, I lost the ability to have my Keyboard
shortcuts as a parameter.
Example 2 :
@menubar =
self.get_menu_bar.find_menu(''ID_MENUBAR1'') # This only accepts
1 argument
@menu_quit =
self.get_menu_bar.find_menu_item("File","Quit") # This only
accepts 2 arguments
or
evt_menu(self.get_menu_bar.find_menu_item("Tools","MS Picture
Manager")) do
open_ex
end
Is there a way to use the Keyboard Shortcuts with XRIC?
Thank you,
Bill
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users