[Mono-winforms-list] TreeView
Jackson Harper
jackson at ximian.com
Thu Mar 22 09:11:10 EDT 2007
Those are 2.0 features that haven't been implemented yet. Try using
MouseClick for now and GetNodeAt.
Or if you would like, you could have a go at implementing those events.
It's not very much work, I just don't have time to do it right now
because we are focusing on lowering the bug count.
Cheers,
Jackson
On Thu, 2007-03-22 at 10:50 +0100, Sponsel, Carsten (ext) wrote:
> 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
> _______________________________________________
> Mono-winforms-list maillist - Mono-winforms-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
More information about the Mono-winforms-list
mailing list