Re: EuGTK: menus, submenus...
- Posted by irv Jul 30, 2012
- 1197 views
constant submenu1 = create(GtkMenu) set(fileopen,"submenu",submenu1) constant sub1 = create(GtkMenuItem,"Template","do_template"), sub2 = create(GtkMenuItem,"Script","do_script") set(submenu1,"append",sub1) set(submenu1,"append",sub2)
When you attach a new menu to a menu item (in this case, to the fileopen item), it adds a right arrow to the menu caption. Then you populate the new menu with items, same as for the main menu.
BTW: I've updated EuGTK with the Aug.1 version: https://sites.google.com/site/euphoriagtk/Home