FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Menu Event Handlers

 
Post new topic   Reply to topic     Forum Index -> DFL
View previous topic :: View next topic  
Author Message
drumpkid



Joined: 24 Dec 2009
Posts: 1

PostPosted: Thu Dec 24, 2009 7:19 pm    Post subject: Menu Event Handlers Reply with quote

Sorry if my question its so silly...

but how can I add an event handler on a menu Item
Back to top
View user's profile Send private message MSN Messenger
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Tue Feb 16, 2010 11:03 pm    Post subject: Re: Menu Event Handlers Reply with quote

Here's some info on events in general: http://wiki.dprogramming.com/DflDoc/UsingEvents
For menus in particular, you can check out the examples bundled with DFL. Search for MenuItem.
Back to top
View user's profile Send private message
williams8899
Guest





PostPosted: Fri Aug 06, 2010 10:57 pm    Post subject: Reply with quote

MainMenu mainMenu = new MainMenu();
MenuItem fileMenuItem = new MenuItem();
System.EventHandler temp = new System.EventHandler(fileNe wMenuItem_ Click);
fileMenuItem = new MenuItem("&New", temp);
mainMenu.MenuItems.Add(fil eMenuItem);
this.Menu = mainMenu;

-------------------------------------------------
(links removed by admin)
Back to top
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DFL All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group