Re: EuGTK: menus, submenus...

new topic     » goto parent     » topic index » view thread      » older message » newer message
 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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu