Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic support for default PowerPoint handles style (Read 4825 times)
jf2020
Junior Member
**
Offline


I love FlowChart!

Posts: 63
Joined: Feb 23rd, 2006
support for default PowerPoint handles style
Jul 16th, 2013 at 9:22pm
Print Post  
Hi,

A great addition to Flowchart would be the native support of better selection handles. By default they are all squares (I guess like in Visio), when more and more drawing programs are using different handle style for the vertex handle (round) and the mid point handle (smaller square). Also the rendering of the handles uses gradient. I know that we can use custom drawing, but native support would be nice.

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: support for default PowerPoint handles style
Reply #1 - Jul 18th, 2013 at 7:53am
Print Post  
Hi,

You can already render handles using gradients by setting HandlesVisualStyle.HandleBrush to a gradient brush. Our developer will add a new HandlesStyle enum member for drawing round handles at nodes' corners in next few days.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: support for default PowerPoint handles style
Reply #2 - Jul 18th, 2013 at 11:51am
Print Post  
Hi,

The version below adds RoundAndSquare and RoundAndSquare2 members to the HandlesStyle enumeration. The former renders only handles, the latter also draws a frame around the node using HandlesVisualStyle.DashPen:

https://mindfusion.eu/_beta/fcnet_ppoint_handles.zip

HandlesVisualStyle now also contains a RotationHandleBrush property that lets you set a distinct brush for the rotation handle. Now you should be able to get handles' appearance similar to your image using these settings:

Code
Select All
diagram.ShapeHandlesStyle = HandlesStyle.RoundAndSquare2;

diagram.ActiveItemHandlesStyle.HandleBrush =
	new LinearGradientBrush(Color.White, Color.LightBlue, 90);

diagram.ActiveItemHandlesStyle.RotationHandleBrush =
	new LinearGradientBrush(Color.White, Color.LightGreen, 90);

diagram.ActiveItemHandlesStyle.DashPen = new Pen(Color.Black, 0); 



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