Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Attach node to item (Read 1446 times)
m.brioschi
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: Jun 8th, 2009
Attach node to item
Jun 8th, 2009 at 10:06am
Print Post  
Hi, I need to Attach a shape node to another item and set the node's Image, so it acts as an additional icon displayed near the main item (text).
I have this vb.net code:
       Dim canvas_ As MindFusion.Diagramming.Diagram = canvas.Diagram
                   Dim box As MindFusion.Diagramming.ShapeNode = canvas_.Factory.CreateShapeNode(4,  4, 48, 48)
                   box.Bounds = New RectangleF(100,100, 15, 15)
                   box.Shape = MindFusion.Diagramming.Shapes.Rectangle
box.Text = "Test"

Can anyone help me?

Tks
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Attach node to item
Reply #1 - Jun 8th, 2009 at 10:27am
Print Post  
Hi,

Set

box.Image = System.Drawing.Image.FromFile("local path on server")

and then call

box.AttachTo(mainItem, AttachToNode...)

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint