Displaying 5 results from an estimated 5 matches for "item_normal".
2004 Jan 28
1
Submenues
...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@inp.nsk.su
2007 Jun 22
0
[1059] trunk/wxruby2/doc/textile/toolbar.txtl: Update ToolBar documentation to reflect recent changes in API
...se.html *add_tool*(%(arg-type)Integer% toolId,
- %(arg-type)String% label,
- %(arg-type)Bitmap% bitmap1,
- %(arg-type)String% shortHelpString = "",
- %(arg-type)ItemKind% kind = ITEM_NORMAL)
</del><ins>+ Integer *add_tool*(%(arg-type)Integer% toolId,
+ %(arg-type)String% label,
+ %(arg-type)Bitmap% bitmap1,
+ %(arg-type)String% shortHelpString = "",
+ %(arg-type)ItemKind% kind = IT...
2004 May 03
1
Sub-menus?
Hey guys,
I have been trying unsuccessfully to create a menu that holds "sub-menus".
To clarify, I want something along the lines of when you click on a File
menu, then see the "New" menu, which you can click on to open a new layer of
menus. Is this supported yet in WxRuby?
Robert
_________________________________________________________________
Getting married? Find
2004 Mar 16
0
MDI and submenues
...hildFrame.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
frame = MyFrame.new("MDI parent")
frame.show(TRUE)
end
end
a = RbApp.new
a.main_loop
#===================================...
2006 Nov 04
0
[720] trunk/wxruby2/doc/textile/menu.txtl: Update, rubyify and tidy
...lt;span class="cx"> * _id_ The menu command identifier.
</span><span class="cx"> * _item_ The string to appear on the menu item.
</span><span class="cx"> * _menu_ Pull-right submenu.
</span><del>-* _kind_ May be @ITEM_SEPARATOR@, @ITEM_NORMAL@,
-@ITEM_CHECK@ or @ITEM_RADIO@
-* _helpString_ An optional help string associated with the item.
-By default, the handler for the EVT_MENU_HIGHLIGHT event displays
-this string in the status line.
-* _menuItem_ A menuitem object. It will be owned by the Menu object after this function
-is called,...