hi
I have a problem with wx.net 0.6.0.1
I would like to know the sender of a menu event when I click on the menuitem.
It's the wx.frame who's return and not the wx.menuitem !
why ???
For exemple :
public class Form1 : wx.Frame {
private wx.MenuBar mainMenu1;
private wx.Menu menuItem1;
const int ID_MENUITEM1 = 1;
public Form1() : this("Form1", wx.Window.wxDefaultPosition, new System.Drawing.Size(300,321))
{
mainMenu1=new wx.MenuBar();
menuItem1=new wx.Menu();
menuItem1.Append(ID_MENUITEM1, "Test");
this.MenuBar=mainMenu1;
EVT_MENU(ID_MENUITEM1, new wx.EventListener(this.menuItem1_Click));
}
private void menuItem1_Click(object sender, wx.Event e)
{
}
}
the sender of "menuItem1_Click" is still "FORM1" but it should be "MENUTITEM1" !!!!!!!!
I'm right ?????
What is a problem ????
Thanks for your help !!!!
Manu
bug with menu events !!!
-
- In need of some credit
- Posts: 3
- Joined: Mon Apr 04, 2005 12:51 pm
- Ryan Norton
- wxWorld Domination!
- Posts: 1319
- Joined: Mon Aug 30, 2004 6:01 pm
-
- In need of some credit
- Posts: 3
- Joined: Mon Apr 04, 2005 12:51 pm
-
- In need of some credit
- Posts: 3
- Joined: Mon Apr 04, 2005 12:51 pm