[Mono-winforms-list] TreeView
Sponsel, Carsten (ext)
carsten.sponsel.ext at siemens.com
Thu Mar 22 05:50:04 EDT 2007
Hi,
I want to use the TreeView in my application, but unfortunately it does
not call my Mouse event handlers on clicking into the tree view. Is that
a known error and is there an estimation when it will be fixed, or am i
using it wrong (under Windows the same code works).
I'm using mono version 1.2.3.1 and also tried one of the recent daily
snapshots.
I tried using the following event handlers:
//$$$BUG$$$ mono 1.2.3.1 does not support NodeMouseClick and
NodeMouseDoubleClick
#if DOTNET
System.Console.WriteLine ("...... .NET .....");
m_Tree.NodeMouseClick += new TreeNodeMouseClickEventHandler
(m_Tree_NodeMouseClick);
m_Tree.NodeMouseDoubleClick += new TreeNodeMouseClickEventHandler
(m_Tree_NodeMouseDoubleClick);
m_Tree.MouseClick += new MouseEventHandler (m_Tree_MouseClick);
#else
System.Console.WriteLine ("...... MONO .....");
this.DoubleClick += new EventHandler (m_Tree_DoubleClick);
m_Tree.DoubleClick += new EventHandler (m_Tree_DoubleClick);
this.MouseClick += new MouseEventHandler (m_Tree_MouseClick);
this.MouseDown += new MouseEventHandler (m_Tree_MouseClick);
this.MouseUp += new MouseEventHandler (m_Tree_MouseClick);
this.Click += new EventHandler (m_Tree_Click);
#endif
But none of the event handlers will ever be called.
Any help?
Thanks :-)
Carsten
More information about the Mono-winforms-list
mailing list