Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Query. (Read 1426 times)
Anant_Shukla
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 36
Joined: Mar 16th, 2009
Query.
Mar 25th, 2009 at 2:03pm
Print Post  
Hi,

In my application I need the nodes present on the diagram get enlarged on mouse enter event for the node  and back to normal size on mouse leave event. The specific requirements are as follows :

1. I do have decision shape nodes and rectangular nodes are attached to them which contain the text associated with the main node. So when I say node should enlarge to produce highlight effect the alignment of the text in the attached node associated with main node should not alter or get distorted.

2. The enlarging effect should be independent of zooming i.e if I zoom in or zoom out the diagram the node should enlarge uniformly it should always enlarge to the same size no matter what is the zoomfactor.

3. When I move the enlarged node over the grid and if the AlignToGrid property for the diagram is set true then the node should take care of the alignment with respect to the grid and when I release the node and node restore its original size it should align to the grid properly.

Thanks and Regards,
Anant Shukla.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Query.
Reply #1 - Mar 25th, 2009 at 2:59pm
Print Post  
Handle MouseMove and assign a ScaleTransform to the RenderTransform property of the node that's under the mouse. Restore the original transform when the mouse pointer moves off the node.

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