[Gtk-sharp-list] sub - sub menuItem

luca luca.maccari at gmail.com
Wed Apr 13 05:40:58 EDT 2011


Hi everyone,
i've red tutorials online but the topic seems to be not mentioned

i've implemented a menu bar like that  :
MenuBar mainMenu = new MenuBar();

with corresponding :

Menu report = new Menu();
		
		
		    MenuItem reportItem = new MenuItem("_Report");
		    reportItem.Submenu = report;
		    mainMenu.Append(reportItem);
		
		
				Menu imenu = new Menu();
				MenuItem optReport = new MenuItem("Report option");
				optReport.Submenu = imenu;

                                         enuItem icopy = new
MenuItem("Copy");
        		                MenuItem iprop = new MenuItem("Properties' ");

        		                imenu.Append(icopy);
        		                imenu.Append(iprop);
		
				report.Append(optReport);
                                .....

and that works fine for me, now the problem that i ask is : how can i create
a submenu from (f.ex.)  Copy -> cut/copy/paste?
seems to be not covered on tutorial online so i kindly as if someone know
how to implement that features

many thanks in advance to all that will reply,
regards,
Luca




--
View this message in context: http://mono.1490590.n4.nabble.com/sub-sub-menuItem-tp3446712p3446712.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.


More information about the Gtk-sharp-list mailing list