Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Double click event (Read 2713 times)
tusharpateluk
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 37
Joined: Sep 3rd, 2008
Double click event
Nov 12th, 2008 at 12:01pm
Print Post  
Hi Stoyo,

I have handled click and double click event of Node. But, when I double click on the node click event get's fired not the double click

Is it a bug?

Thanks

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Double click event
Reply #1 - Nov 12th, 2008 at 12:20pm
Print Post  
Hi,

It's by design. Both get raised consecutively, but you might miss the double-clicked event if the NodeClicked handler create a new window or moves the mouse capture to a different control.

Code
Select All
private void OnNodeClicked(object sender, NodeEventArgs e)
{
	ShapeNode shape = e.Node as ShapeNode;
	shape.Text = "clicked";
}

private void OnNodeDoubleClicked(object sender, NodeEventArgs e)
{
	ShapeNode shape = e.Node as ShapeNode;
	shape.Text = "double clicked";
}
 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
tusharpateluk
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 37
Joined: Sep 3rd, 2008
Re: Double click event
Reply #2 - Nov 12th, 2008 at 12:34pm
Print Post  
I have also handled Selected and Activate events of the node. On node activation I am setting the visiblity of the custom property control.

I understand the sequence of events for node are as follows:-

Selected
Activated
Clicked & double click

Do you think what I am doing in Activation of node is the problem and hence i am not getting double click event.
  
Back to top
 
IP Logged
 
tusharpateluk
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 37
Joined: Sep 3rd, 2008
Re: Double click event
Reply #3 - Nov 12th, 2008 at 2:54pm
Print Post  
I have manage to fix the issue. I have removed click event and handled it in selection event.

Thanks for your help
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint