Hello,
We are using WinTree in our application, and we noticed some text alignment problem. I succesfully reproduced it with one of the sample application. I tried the same with a .NET treeview, and the text was aligned correctly. Does somebody have any idea of what might be the problem, and more importantly if a workaround is available ?
Here are some screenshots of the problem. Please notice the node labelled 19.
Infragistics version :
The .NET version :
Regards,
I just ran the Miscellaneous Features sample and once again, I do not see any test alignment issues on my machine. Here's a screen shot:
Mike Saltzman"] In this example, I don't see any problems with the tet alignment. My guess is that your sample is setting some property on the tree that is causing this.
I could get this problem with by launching an out of the box (version 2006 volume 1 CLR2) sample (the one labeled miscellaneous features). So I guess I did not set anything special.
Mike Saltzman"] Perhaps you are using GDI instead of GDI+.
In fact, this is quite the opposite. In my application, I was in default mode (which was equivalent to GDI+, I guess), then I switched to GDI and the alignment became good again. I've already heard of some problems in font rendering with windows (http://www.antigrain.com/research/font_rasterization/index.html#FONT_RASTERIZATION), I do not know if this is related.
I do not know either what am I losing by using GDI instead of GDI+.
I tested this out by placing n Inbox tree and an Infragistics tree on the same form and the following code:
private void Form1_Load(object sender, EventArgs e) { string[ nodes = new string[ { "12 - etes", "13 - fergfer", "19 - grtgrtgrtgrtgrtgrtgrtgrtgrtgrtgrtgrtgt", "20 - ffffffffffffffffffffffffffffffffffffffffffff" }; foreach (string node in nodes) { this.ultraTree1.Nodes.Add(node); this.treeView1.Nodes.Add(node); } }
In this example, I don't see any problems with the tet alignment. My guess is that your sample is setting some property on the tree that is causing this.
Perhaps you are using GDI instead of GDI+.
Maybe it's an appearance like you are setting the font or loading an application style.