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

Bitmap and Label in one node

Thread ID:

Created:

Updated:

Platform:

Replies:

90334 Sep 25,2009 12:45 PM UTC Sep 28,2009 01:48 PM UTC ASP.NET Web Forms (Classic) 2
loading
Tags: DiagramWebControl
Nicklas Kittelmann
Asked On September 25, 2009 12:45 PM UTC

I'm new to Essential Diagram for Windows Forms, but I fail to find a way to do what I want - perhaps someone can give me a hint.

I want to have a diagram with several nodes - nodes which contains different bitmaps and different texts. I want to be able to drag the nodes around in the diagram.

I have tried to use the Symbol Designer to create symbols with bitmaps and text, loading the symbols into a PaletteGroupView, and cloning the nodes from there. However, by doing that, I fail to change the text on the nodes programmatically (I can do it by clicking with the mouse in my app). I'm not sure if it's possible to change the text on the nodes the way I want like that.

The other thing I've tried is to use a BitmapNode, but that doesn't have a Labels property like Nodes inherited from PathNode.

The third option is to create two nodes. One for the Label and one for the Bitmap, but that seems like a flawed way of doing it, especially since I want to drag'n'drop the nodes (Bitmap and Label together)

Does anyone have a suggestion to how to accomplish what I want?



Nicklas Kittelmann
Replied On September 25, 2009 01:01 PM UTC

I seem to have posted this in the wrong section:
I'm coding in WinForms, so please move this post if possible.

Dinesh M [Syncfusion]
Replied On September 28, 2009 01:48 PM UTC

Hi Nicklas,

Thank you for your interest in Syncfusion products.

Whenever you create a symbol in "Symbol Designer" the symbol will be Grouped automatically. Thus you might not have able to access the text in the symbol through code easily. Currently the BitmapNode does not support labels and we have a open feature request for it.

To overcome this issue please create a BitmapNode and TextNode and Group them together. To know more about grouping, go through the following online document.

http://help.syncfusion.com/ug_71_new/diagram/Grouping.html

Please let me know if you have any questions.

Regards,
Dinesh

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

;