Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Dashstyle in JavaApplet Mode (Read 1513 times)
bkernan
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 37
Joined: May 28th, 2009
Dashstyle in JavaApplet Mode
Mar 24th, 2010 at 8:28pm
Print Post  
Hello,

does anyone know if it's possible to set the border style of a ShapeNode to a dashed style? My below code is just showing up as a solid line.

node.Pen.DashStyle = System.Drawing.Drawing2D.DashStyle.Dot;

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Dashstyle in JavaApplet Mode
Reply #1 - Mar 25th, 2010 at 10:21am
Print Post  
Hi,

Dash style transfer to the applet does not work correctly for the enum styles. As a work-around, specify it through an array for the time being:

Code
Select All
node.Pen.DashStyle = DashStyle.Custom;
node.Pen.DashPattern = new float[] { 1f, 1f };
node.Pen.Width = 0.5f; 



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