Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Handles not displayed (Read 2322 times)
benjamin huser
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 26
Joined: Oct 23rd, 2014
Handles not displayed
Nov 24th, 2016 at 12:49pm
Print Post  
Hi

I just played around with our Nodes and I wanted to add the RotationHandle:

         EnabledHandles = AdjustmentHandles.Move | AdjustmentHandles.Rotate;
         if (nodeViewModel.Resizable)
         {
            EnabledHandles |= AdjustmentHandles.ResizeBottomRight;
         }

The move handle is visible as soon as i select the node. But I cannot see anywhere a handle to rotate the node, am I missing something?

On the topic of the Rotation I have another question. Is it possible to specify sort of a step size. So that we don't allow to set any rotation angle but just the ones that are dividible by 90 (e.g.: 90/180/270/0).

Regards
  
Back to top
 
IP Logged
 
benjamin huser
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 26
Joined: Oct 23rd, 2014
Re: Handles not displayed
Reply #1 - Nov 24th, 2016 at 1:32pm
Print Post  
Hi

ok I just figured out that it depends as well on the HandlesStyle that is set. So I managed now to rotate the control via tha handle.
But my second question still remains.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: Handles not displayed
Reply #2 - Nov 24th, 2016 at 2:05pm
Print Post  
There's no rotation step size property. You could align to nearest multiple of 90 from NodeModified handler -

Code
Select All
if (e.AdjustmentHandle == AdjustmentHandles.Rotate)
	e.Node.RotationAngle = (int) e.Node.RotationAngle / 90 * 90; 



Regards,
Slavcho
  
Back to top
 
IP Logged
 
benjamin huser
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 26
Joined: Oct 23rd, 2014
Re: Handles not displayed
Reply #3 - Nov 24th, 2016 at 2:47pm
Print Post  
Hi Slavcho

thanks for the tip, that solved my issue Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint