We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Hiding group handles

Thread ID:

Created:

Updated:

Platform:

Replies:

98605 Mar 11,2011 02:16 AM UTC Mar 21,2011 01:12 PM UTC WinForms 3
loading
Tags: Diagram
GC
Asked On March 11, 2011 02:16 AM UTC

Is it possible to hide (set to transparent?) group handles. By group handles I mean the handles that appear when 2 or more nodes are selected.


Amsath Ali M [Syncfusion]
Replied On March 16, 2011 10:54 AM UTC

Hi GC,

Thanks for using Syncfusion products.

We suggest you to set the view “HandleColor” and “HandleOutlineColor” property to transparent to achieve your requirement.

Please refer the below code snippet:
[C#]

this.diagram1.View.HandleColor = Color.Transparent;
this.diagram1.View.HandleOutlineColor = Color.Transparent;



For your convenience, We have created a simple sample to demonstrate the above and the same can be downloaded from the below link:

GroupingDemo-1938051178.zip

Please let me know if you have any concerns.

Regards,
Amsath Ali M



GC
Replied On March 19, 2011 01:09 AM UTC

This hides all handles. I just want to hide group handles.


Amsath Ali M [Syncfusion]
Replied On March 21, 2011 01:12 PM UTC

Hi Gc,

Thanks for using Syncfusion products.

Whenever you select more than one node the group handle only visible.We suggest you to set the view's "HandleColor" and "HandleOutlineColor" property to transparent to acheive your requirement.

Please refer the below code snippet:
[c#]

private void Form1_Load(object sender, EventArgs e)
{

this.diagram1.MouseUp += new MouseEventHandler(diagram_mouse);
}

private void diagram_mouse(object sender, System.Windows.Forms.MouseEventArgs e)
{
NodeCollection nodes = this.diagram1.Controller.SelectionList;

if (nodes.Count > 1)
{
this.diagram1.View.HandleColor = Color.Transparent;
this.diagram1.View.HandleOutlineColor = Color.Transparent;

}
else
{
this.diagram1.View.HandleColor = Color.GreenYellow;
this.diagram1.View.HandleOutlineColor = Color.Black;
}
}




For your convenience, We have created a simple sample to demonstrate the above and the same can be downloaded from the below link:

GroupingDemo-162830136.zip

Please let me know if you have any concerns.

Regards,
Amsath Ali M





CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;