View previous topic :: View next topic |
Author |
Message |
drumpkid
Joined: 24 Dec 2009 Posts: 1
|
Posted: Thu Dec 24, 2009 7:19 pm Post subject: Menu Event Handlers |
|
|
Sorry if my question its so silly...
but how can I add an event handler on a menu Item |
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Tue Feb 16, 2010 11:03 pm Post subject: Re: Menu Event Handlers |
|
|
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 |
|
|
williams8899 Guest
|
Posted: Fri Aug 06, 2010 10:57 pm Post subject: |
|
|
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 |
|
|
|