Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic 3) Non-sizeable node: (Read 2226 times)
Shafi
Full Member
***
Offline


I Love MindFusion!

Posts: 109
Joined: Nov 8th, 2016
3) Non-sizeable node:
Dec 27th, 2017 at 6:53am
Print Post  
We need to create node in such way that, User should not able to update it’s size (it is selectable\movable but it is not resizable).
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3146
Joined: Oct 19th, 2005
Re: 3) Non-sizeable node:
Reply #1 - Dec 27th, 2017 at 8:09am
Print Post  
try with node.setEnabledHandles(AdjustmentHandles.Move);
  
Back to top
 
IP Logged
 
Shafi
Full Member
***
Offline


I Love MindFusion!

Posts: 109
Joined: Nov 8th, 2016
Re: 3) Non-sizeable node:
Reply #2 - Dec 29th, 2017 at 8:55pm
Print Post  
Tried this but didn't achieved what I want.
I single AdjustmentHandles value of ON/OFF resize handle, Right now there are following types.
           ResizeTopLeft = 1,
           /** The top-right handle is enabled and can be used to resize the node. */
           ResizeTopRight = 2,
           /** The bottom-right handle is enabled and can be used to resize the node. */
           ResizeBottomRight = 4,
           /** The bottom-left handle is enabled and can be used to resize the node. */
           ResizeBottomLeft = 8,
           /** The top-center handle is enabled and can be used to resize the node vertically. */
           ResizeTopCenter = 16,
           /** The middle-right handle is enabled and can be used to resize the node horizontally. */
           ResizeMiddleRight = 32,
           /** The bottom-center handle is enabled and can be used to resize the node vertically. */
           ResizeBottomCenter = 64,
           /** The middle-left handle is enabled and can be used to resize the node horizontally. */
           ResizeMiddleLeft = 128,

can't set set all at type i.e.not ON/OFF resize node in all direction.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3146
Joined: Oct 19th, 2005
Re: 3) Non-sizeable node:
Reply #3 - Jan 2nd, 2018 at 9:37am
Print Post  
It also contains a Move = 256 value which you can set to make nodes movable but not resizable. Otherwise these are bitmask values and you should be able to combine them using the bitwise or | operator if you need something more elaborate.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Shafi
Full Member
***
Offline


I Love MindFusion!

Posts: 109
Joined: Nov 8th, 2016
Re: 3) Non-sizeable node:
Reply #4 - Jan 3rd, 2018 at 1:21pm
Print Post  
Thanks now it working Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint