Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic NodeDouble Click Event Error (Read 5824 times)
Sachin
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 85
Joined: Mar 14th, 2009
NodeDouble Click Event Error
Apr 7th, 2009 at 1:55pm
Print Post  
HI

I am using 2 diagram light controls .

i drag the node to diagram light then using movedown click iam showing second diagramlight ,
here instead of movedown button click , click the  double click event of the Node  then seconddiagram light  should show but i am getting error in this event ..

Errror

Sys. invalid Operation Exception manage runtime error ,

how to achive this one , if itis single node click working fine

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re:  NodeDouble Click Event Error
Reply #1 - Apr 7th, 2009 at 3:00pm
Print Post  
Could you copy here the code for the event handlers involved in all this?
  
Back to top
 
IP Logged
 
Sachin
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 85
Joined: Mar 14th, 2009
Re:  NodeDouble Click Event Error
Reply #2 - Apr 7th, 2009 at 3:08pm
Print Post  
void DiagramLight1_NodeDoubleClicked(object sender, NodeEventArgs e)
       {
                       this.DiagramLight1.Visibility = Visibility.Collapsed;
           this.DiagramLightProcess.Visibility = Visibility.Visible;
           this.DiagramLightStages.Visibility = Visibility.Collapsed;
       }
  
Back to top
 
IP Logged
 
Sachin
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 85
Joined: Mar 14th, 2009
Re:  NodeDouble Click Event Error
Reply #3 - Apr 7th, 2009 at 5:32pm
Print Post  
u can check this error
create

<d:Diagram x:Name="diagram" Width="1000" Height="1650" ShowGrid="False" Background="#FFE0E0E0" >
       </d:Diagram>

<d:Diagram x:Name="diagram1" Width="1000" Height="1650" ShowGrid="False" Background="#FFE0E0E0" >
       </d:Diagram>


load method
diagram.Visibility = Visibility.Visible;
           diagram1.Visibility = Visibility.Collapsed;


private void diagram_NodeDoubleClicked(object sender, NodeEventArgs e)
       {
           diagram1.Visibility = Visibility.Visible;
           diagram.Visibility = Visibility.Collapsed;
       }
this time u check IE browser warning message is there , how to solve this one very urgent
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re:  NodeDouble Click Event Error
Reply #4 - Apr 8th, 2009 at 9:25am
Print Post  
The Diagram handles MouseDown like this:

1. increment ClickCounter
2. if ClickCounter == 2 -> Raise NodeDoubleClicked
3. SetMouseCapture to track subsequent MouseMoves

SetMouseCapture throws an exception when it is called on the diagram you have just made invisible from the DoubleClicked handler; perhaps invisible elements are not allowed to have the mouse capture. You might try hiding the diagram from a timer event, so that the MouseUp handler can exit before you hide the diagram. We'll also check if reordering our MouseDown code a bit would allow such scenario.

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


I love YaBB 1G - SP1!

Posts: 85
Joined: Mar 14th, 2009
Re:  NodeDouble Click Event Error
Reply #5 - Apr 8th, 2009 at 10:35am
Print Post  
what i need to do for achive the nod double click
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re:  NodeDouble Click Event Error
Reply #6 - Apr 8th, 2009 at 11:24am
Print Post  
Now CaptureMouse is called before raising the event:
https://mindfusion.eu/_beta/diaglite_capture.zip

Seems to work this way.

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


I love YaBB 1G - SP1!

Posts: 85
Joined: Mar 14th, 2009
Re:  NodeDouble Click Event Error
Reply #7 - Apr 8th, 2009 at 11:31am
Print Post  
HI

iam using DLL Version 1.0.2.26294
Downloading Version is 1.0.2.23845

which is latest one

please  very urgent
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re:  NodeDouble Click Event Error
Reply #8 - Apr 8th, 2009 at 12:01pm
Print Post  
1.0.2.23845 is the latest. Sorry, our developers build such pre-release versions on their own systems so the build numbers are not in order. They are correct only for official releases, which we build on a dedicated system.
  
Back to top
 
IP Logged
 
Sachin
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 85
Joined: Mar 14th, 2009
Re:  NodeDouble Click Event Error
Reply #9 - Apr 8th, 2009 at 2:40pm
Print Post  
HI stoyo

It is working fine ..

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