[Wxruby-users] Submenues
Pavel A. Papushev
P.A.Papushev at inp.nsk.su
Wed Jan 28 18:22:38 EST 2004
Hello wxruby users,
Kevin, thank you for the answer about the status bar flicker. I think this
is a question for wxWindows mailing lists.
It's great that 0.2 version will be released soon! It is impossible
to create submenues in 0.1. Could you add the ruby function
append_submenu(id, item, submenu, helpString) to the Wx::Menu class in 0.2,
which calls the wxWindows function
void wxMenu::Append( int id, const wxString& item, wxMenu *subMenu,
const wxString& helpString = "" ),
please?
Also, function append_item() doesn't work:
menu = Menu.new
submenu = Menu.new
submenu.append(2, "item of submenu")
item_with_submenu = MenuItem.new(menu, 2, '&Submenu', '', ITEM_NORMAL, submenu)
menu.append_item( item_with_submenu )
I get error: in `append_item': wrong argument type nil (expected Data) (TypeError)
Could you check it, please?
--
Best regards,
Pavel
mailto:papushev at inp.nsk.su
More information about the wxruby-users
mailing list