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.
Unfortunately, activation email could not send to your email. Please try again.

Hiding group handles

Thread ID:

Created:

Updated:

Platform:

Replies:

98605 Mar 10,2011 09:16 PM Mar 21,2011 09:12 AM Windows Forms 3
loading
Tags: Diagram
GC
Asked On March 10, 2011 09:16 PM

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 06:54 AM

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 18, 2011 09:09 PM

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


Amsath Ali M [Syncfusion]
Replied On March 21, 2011 09:12 AM

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.

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.

;