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.
Syncfusion Feedback

How can i implement symbol container?

Thread ID:

Created:

Updated:

Platform:

Replies:

16858 Jul 26,2004 12:01 PM UTC Jul 27,2004 12:42 PM UTC Windows Forms 1
loading
Tags: Diagram
Nickolay Datchev
Asked On July 26, 2004 12:01 PM UTC

How can I implement Symbol-Container that allows users to drag shapes or simbols on it and drop it into container? The functionalllity is similar to Windows.Forms.Panel control.

Administrator [Syncfusion]
Replied On July 27, 2004 12:42 PM UTC

Hi Nikolay, The ''Container'' that you refer to has to be an instance of the Essential Diagram Diagram.Controls.Diagram control type in order to process the Diagram Shapes and Symbols objects dropped on it and render these as diagram entities. As demonstrated in the DiagramBuilder sample, symbols can be represented using a SymbolPalette control from which the Symbol items may be dragged and dropped on the Diagram control. As for Shapes, these will have to rendered using the Shape tools triggered via toolbar or other user initiated commands. The DiagramBuilder sample source shows how to create and use the various Diagram tools for drawing shapes. Another venue that you could explore for implementing a system where both shapes as well as symbols can be dragged off a ''palette type'' control and dropped onto a diagram instance is by using an instance of the diagram control itself to implement the palette. The palette diagram control''s shapes and symbols can be locked in place by setting the appropriate EditStyle property. Upon selecting a Shape or Symbol item on the palette, copy the node onto the clipboard using the Diagram clipboard copy/paste routines (Diagram.Copy(), Diagram.Paste()) and handle the mouse up events in the target diagram control to paste the diagram node onto the target control. The DiagramBuilder sample shows a simple representation of clipboard copy/paste that you can refer to. Regards Prakash Syncfusion, Inc.

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

;