Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Update pen of shape (Read 1349 times)
Protesto
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Nov 29th, 2011
Update pen of shape
Nov 29th, 2011 at 9:33pm
Print Post  
I select a shapenode and then I have a trackbar which changes the pen width. That works fine, but I want it to show directly on the shape.

When I do this with links I do the following:

  CType(sel.Items(i), DiagramLink).Pen.Width = e.NewValue / 10

               CType(sel.Items(i), DiagramLink).UpdateFromPoints()


Is there a similar approach for shapenodes?


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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Update pen of shape
Reply #1 - Nov 29th, 2011 at 10:49pm
Print Post  
Hi,

Assign a new Pen instance to the nodes' Pen property and they should repaint automatically, or otherwise call diagram.Invalidate().

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