Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
Text alignment problem
posted

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,

 

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

     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.  

Children