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. Image for the cookie policy date
close icon

Can hide PinPoint and Rotation Mark?

I make Process Diagram and need to hide pinpoint and rotation mark in Node.

can hide pinpoint and rotation mark?

and want to pinpoint does not interactive by mouse.


1 Reply

AD Administrator Syncfusion Team November 3, 2007 04:11 AM UTC



>I make Process Diagram and need to hide pinpoint and rotation mark in Node.

can hide pinpoint and rotation mark?

and want to pinpoint does not interactive by mouse.





Hi,

Thanks for your interest in Syncfusion product.

In default rotation point and pinpoint are hide in webdiagram.
But in windows rotation point and pinpoint are visible.
If you want to prevent the rotation action and remove the Rotation point in windows
then you have to customize the View class and override the DrawHandles() method.

Please refer to the following code snippet

protected override void DrawHandles(System.Drawing.Graphics grfx, NodeCollection nodesSelected)
{
if (nodesSelected != null && nodesSelected.Count > 0)
{
foreach (Node nodeCur in nodesSelected)
{
if (nodeCur.Visible)
{
HandleEditMode resultHandleEditMode = nodeCur.EditStyle.DefaultHandleEditMode;
Matrix matrixParentsTransorm = GetParentsTransform(nodeCur);
GraphicsState stateSave = grfx.Save();
grfx.MultiplyTransform(matrixParentsTransorm);
switch (resultHandleEditMode)
{
case HandleEditMode.Resize:
if (nodeCur is IEndPointContainer)
{
HandleRenderer.DrawEndPoints(grfx, nodeCur);
HandleRenderer.OutlineBoundingRectangle(grfx, nodeCur);
}
else
{
HandleRenderer.OutlineBoundingRectangle(grfx, nodeCur);
HandleRenderer.DrawSelectionHandles(grfx, nodeCur);
}
break;
case HandleEditMode.Vertex:
PathNode pathNode = nodeCur as PathNode;
if (nodeCur is IEndPointContainer)
{
HandleRenderer.DrawEndPoints(grfx, nodeCur);
HandleRenderer.OutlineBoundingRectangle(grfx, nodeCur);
if (pathNode.CanDrawControlPoints())
{
pathNode.DrawControlPoints(grfx);
}
}
else if (pathNode != null && (pathNode.CanChangePath || pathNode.IsVertexEditable))
{
HandleRenderer.OutlineBoundingRectangle(grfx, pathNode);
// Draw control points if can.
if (pathNode.CanDrawControlPoints())
{
pathNode.DrawControlPoints(grfx);
}
else
{
HandleRenderer.DrawVertexHandles(grfx, pathNode);
}
}
break;
}
grfx.Restore(stateSave);
}
}
}

I have attached the sample for your reference. You can download the sample from the following page.

http://websamples.syncfusion.com/samples/Diagram.Windows/F69568/main.htm

Please let me know if you have any questions.

Thanks,
Prakash

Loader.
Live Chat Icon For mobile
Up arrow icon