Well, I looked through your code and didn’t see anything, so I tried it (converting to C# code…) … and I get:
I have reproduced the same problem in c# and I get the same result as my VB output. You wouldn’t have any suggestions if this is something else outside of the go environment that causes the problem. My machine is running Vista Home Premium. The code I used was as follows:
* Copyright © Northwoods Software Corporation, 1998-2007. All Rights
* Reserved.
*
* Restricted Rights: Use, duplication, or disclosure by the U.S.
* Government is subject to restrictions as set forth in subparagraph
* (c) (1) (ii) of DFARS 252.227-7013, or in FAR 52.227-19, or in FAR
* 52.227-14 Alt. III, as applicable.
*/
using System.Drawing;
using System.Windows.Forms;
using Northwoods.Go;
public class MinimalApp : Form {
// constructor
public MinimalApp() {
this.Text = "Minimal GoDiagram App";
// create a Go view (a Control) and add to the form
GoView myView = new GoView();
myView.Dock = DockStyle.Fill;
this.Controls.Add(myView);
GoBasicNode node1 = new GoBasicNode();
// specify position, label and color
node1.Location = new PointF(100, 100);
node1.Text = "first";
node1.Editable = true; // first node is editable with F2 only
node1.Brush = Brushes.Blue;
// add to the document, not to the view
myView.Document.Add(node1);
node2.Location = new PointF(200, 100);
node2.Text = "second";
node2.Label.Editable = true; // second node is editable by clicking only
node2.Brush = Brushes.Magenta;
myView.Document.Add(node2);
node3.Location = new PointF(200, 200);
node3.Text = "third";
node3.Label.Editable = true; // second node is editable by clicking only
node3.Brush = Brushes.Yellow;
myView.Document.Add(node3);
link1.FromPort = node1.Port;
link1.ToPort = node2.Port;
Pen pen1 = new Pen(Color.Blue,10);
float[] sa = { 0.0F, 0.5F, 0.9F, 1.0F };
pen1.CompoundArray = sa;
link1.Pen = pen1;
myView.Document.Add(link1);
link2.FromPort = node1.Port;
link2.ToPort = node3.Port;
Pen pen2 = new Pen(Color.Blue, 10);
float[] sa2 = { 0.0F, 0.2F, 0.4F, 0.6F, 0.8F, 1.0F };
link2.Pen = pen2;
myView.Document.Add(link2);
link3.FromPort = node2.Port;
link3.ToPort = node3.Port;
Pen pen3 = new Pen(Color.Green, 10);
float[] sa3 = { 0.0F, 0.2F, 0.4F, 0.6F, 0.8F, 1.0F };
pen3.CompoundArray = sa3;
link3.Pen = pen3;
myView.Document.Add(link3);
}
public static void Main(string[] args) {
Application.Run(new MinimalApp());
}
}
}
I was skeptical that is was language. Not sure how it could be a Vista thing either, but we’ll look into it.
I copied my .exe to a Vista system, and it looks like my screenshot above.
No, we haven’t been able to reproduce the problem. I’m really hesitant to blame video drivers on problems, but if you could try on different video controlers or check driver versions, that would be helpful.
Jake<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
I have run this in VS Studio 2005 on my laptop (still Vista) which still shows the wrong pen strokes! As well as running the compiled app on a windows XP home machine - same wrong results!
Please note that this is not critical for me at the moment! I have got around it by changing the widths.
Jake