Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to move an activity from any point - not only the border? (Read 3081 times)
Homam
Junior Member
**
Offline


I Love MindFusion!

Posts: 67
Joined: Feb 7th, 2012
How to move an activity from any point - not only the border?
Sep 25th, 2012 at 11:10am
Print Post  
I'd like to be able to move the node by moving it from any point - not only the border. How to accomplish that?
  
Back to top
 
IP Logged
 
Lyubo
God Member
*****
Offline


MindFusion team

Posts: 511
Joined: Jun 17th, 2010
Re: How to move an activity from any point - not only the border?
Reply #1 - Sep 25th, 2012 at 12:09pm
Print Post  
Hi,

Try setting the node's HandlesStyle property to EasyMove.
Here's a link in the help files, which describes all available options: http://www.mindfusion.eu/onlinehelp/flowchartnet/index.htm?T_MindFusion_Diagramm....

Regards,
Lyubo
  
Back to top
 
IP Logged
 
Homam
Junior Member
**
Offline


I Love MindFusion!

Posts: 67
Joined: Feb 7th, 2012
Re: How to move an activity from any point - not only the border?
Reply #2 - Sep 26th, 2012 at 9:33am
Print Post  
it worked only in the border and on the central label. But the it's not able to move the node from the other inner points.
  

Capture3.PNG (Attachment deleted)
Back to top
 
IP Logged
 
Lyubo
God Member
*****
Offline


MindFusion team

Posts: 511
Joined: Jun 17th, 2010
Re: How to move an activity from any point - not only the border?
Reply #3 - Sep 26th, 2012 at 10:50am
Print Post  
When you select the node, do you see a round handle at the node's center?

If not, please check if you're not loading some file, that restores a previously set HandlesStyle value; or maybe EasyMove gets overwritten by a later assignment somewhere in your code.

You could also attach a handler to the Diagram.NodeSelected event and check the actual value on node selection (the following will output the value in the Visual Studio Output window):

Code
Select All
private void diagram_NodeSelected(object sender, NodeEventArgs e)
{
    System.Diagnostics.Debug.WriteLine(e.Node.HandlesStyle);
}
 

  
Back to top
 
IP Logged
 
Homam
Junior Member
**
Offline


I Love MindFusion!

Posts: 67
Joined: Feb 7th, 2012
Re: How to move an activity from any point - not only the border?
Reply #4 - Sep 26th, 2012 at 11:35am
Print Post  
Well, thank you for replying.

I checked the value and it was "HatchHandles" for the HandlesStyle. And view.ControlHandlesStyle is "EasyMove".

Is it wired?
  
Back to top
 
IP Logged
 
Lyubo
God Member
*****
Offline


MindFusion team

Posts: 511
Joined: Jun 17th, 2010
Re: How to move an activity from any point - not only the border?
Reply #5 - Sep 26th, 2012 at 11:46am
Print Post  
Hi,

DiagramView.ControlHandlesStyle provides a default value for newly created ControlNode instances in the diagram.

If you are using ShapeNodes (if I recall correctly from a sample you sent us before), set Diagram.ShapeHandlesStyle instead.

For other node types, handle the NodeCreating event, and assign the value from there.

Regards,
Lyubo
  
Back to top
 
IP Logged
 
Homam
Junior Member
**
Offline


I Love MindFusion!

Posts: 67
Joined: Feb 7th, 2012
Re: How to move an activity from any point - not only the border?
Reply #6 - Sep 26th, 2012 at 11:53am
Print Post  
It worked well. Thank you.
Sorry.. I'm asking too much - the last question here.. Is it possible to remove this "small area in the center" since I'm using anchor points on the border to create links?
  
Back to top
 
IP Logged
 
Lyubo
God Member
*****
Offline


MindFusion team

Posts: 511
Joined: Jun 17th, 2010
Re: How to move an activity from any point - not only the border?
Reply #7 - Sep 26th, 2012 at 12:13pm
Print Post  
You could try if HandlesStyle.InvisibleMove fits the requirements.

Other than that, there's the Custom option which lets you perform custom drawing and hit testing of the selection handles yourself.

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