Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Highlight anchor on mouse over (Read 1766 times)
oOAnriOo
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 19
Joined: Oct 12th, 2009
Highlight anchor on mouse over
Oct 12th, 2009 at 11:35am
Print Post  
I have a bunch of custom drawn anchors i need to highlight when the mouse hovers over them.

Unfortunately there is no mouseover event on anchors and the Diagram.GetItemAt() does not trigger on anchors.
Is there any other way I can accomplish this?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Highlight anchor on mouse over
Reply #1 - Oct 12th, 2009 at 12:38pm
Print Post  
Try using the GetNodeAt overload that takes a threshold argument, and then the GetAnchorAt method from this post -

http://mindfusion.eu/Forum/YaBB.pl?board=wpfdg_disc;action=display;num=125049956...

You must use the RectangleF and PointF types instead of the WPF's Rect & Point method shown in the post above.

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


I love YaBB 1G - SP1!

Posts: 19
Joined: Oct 12th, 2009
Re: Highlight anchor on mouse over
Reply #2 - Oct 12th, 2009 at 1:12pm
Print Post  
Perfect!!  That would work..
Any idea how to force a redraw of the anchor/node?

(I'm testing the component, so it might be quite basic questions I have)
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Highlight anchor on mouse over
Reply #3 - Oct 12th, 2009 at 2:19pm
Print Post  
Try with diagram.Invalidate(node.getRepaintRect()).

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint