Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic problem with anchor. (Read 1864 times)
ayushneema
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 37
Joined: Sep 23rd, 2009
problem with anchor.
Oct 9th, 2009 at 11:05am
Print Post  
Hi
i have created diagram that contain nodes. i am showing anchor on node but on the initialization i am setting diagram.ShowAnchors = ShowAnchors.Never.
I have a boolean variable which is checked in diagram_mousemove event to show anchor, i.e if flag is true, show anchor on node and i am changing the flag's value on button click.
But my problem is that when i set the flag's value to "false" then for the first node(when i enter a mouse on any node) it show anchor.
I am sending the sample application. please reproduce the issue using following steps:
1. run the applicaton. initially flag is false so when you move mouse on node there will be no anchor.
2. click on button "Set Flag". a message box will be displayed with the value of flag.
3. Move mouse on node, now for the first node it will show anchor.
Thanks
Ayush Neema
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: problem with anchor.
Reply #1 - Oct 9th, 2009 at 7:04pm
Print Post  
You can toggle the ShowAnchors value in the same method that sets the boolean variable. That way the values will be in sync all the time; now they are not and you get node_MouseMove raised after the anchor point has already been displayed.
  
Back to top
 
IP Logged
 
ayushneema
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 37
Joined: Sep 23rd, 2009
Re: problem with anchor.
Reply #2 - Oct 10th, 2009 at 9:18am
Print Post  
Hi Stoyan
Thanks for quick replay.

It is working as expected.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint