Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Question about doubleclick (Read 4554 times)
JR
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 86
Joined: Jun 12th, 2007
Question about doubleclick
Feb 2nd, 2012 at 12:44pm
Print Post  
Hello,

I have a little question about the doubleclick events.

I have a graph with boxes and arrows.
I have 2 kinds of boxes.
The first is a 'normal' box selectable with doubleclick allowed.
The second is a 'text' box transparent under the 'normal' box which can not be selected (locked) and I don't want the user to do a doubleclick on it.

The first box is linked with an arrow to another 'normal' box. This arrow is visible on the 'text' box.

When I doubleclick the arrow in a zone of the 'text' box the boxdblclicked is fired !!
I don't want this event but the arrowdblclicked.

Is it possible to forbid the mouse events (click, dblclick) for the 'text' box ?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Question about doubleclick
Reply #1 - Feb 2nd, 2012 at 2:07pm
Print Post  
Hi,

Try setting the FlowChart.EventFlags[fNoClickEventsForLockedObjs] flag. It should prevent raising the box event, but I'm not sure if you will get one for the arrow.

Stoyan
  
Back to top
 
IP Logged
 
JR
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 86
Joined: Jun 12th, 2007
Re: Question about doubleclick
Reply #2 - Feb 2nd, 2012 at 2:22pm
Print Post  
Hi,

I tryed your method but the events are still being fired.
My 'text' box is locked but not my arrows.

The boxdblclicked is still fired for the locked boxes.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Question about doubleclick
Reply #3 - Feb 2nd, 2012 at 6:14pm
Print Post  
Hi,

Have you set it to true? It works fine in my VB6 test - stops BoxDblClicked and raises ArrowDblClicked for the link behind the locked box.

Stoyan
  
Back to top
 
IP Logged
 
JR
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 86
Joined: Jun 12th, 2007
Re: Question about doubleclick
Reply #4 - Feb 3rd, 2012 at 8:49am
Print Post  
I don't put the true flag.

Now with it, it works.

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