Displaying 1 result from an estimated 1 matches for "item_with_submenu1".
Did you mean:
item_with_submenu
2004 Mar 16
0
MDI and submenues
...end(@fileMenu, ''File'')
@fileMenu.append(:mi_file_new.to_i, "New")
evt_menu(:mi_file_new.to_i){|a|
MDIChildFrame.new(self, -1, "MDI child")
}
#<< Test submenu
@submenu1 = Menu.new
@submenu1.append(1, "item 1")
@item_with_submenu1 = MenuItem.new(@fileMenu, 2, ''&Submenu 1'',
'''', ITEM_NORMAL, @submenu1)
@fileMenu.append_item( @item_with_submenu1 )
#>>
set_menu_bar( @menuBar )
end
end
class RbApp < App
def on_init
fr...