Displaying 1 result from an estimated 1 matches for "mi_file_new".
Did you mean:
rni_file_new
2004 Mar 16
0
MDI and submenues
...==================================
require ''wxruby''
include Wx
class MyFrame < MDIParentFrame
def initialize(title)
super( nil, -1, title )
@menuBar = MenuBar.new
@fileMenu = Menu.new
@menuBar.append(@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...