We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

TreeNodeAdv bug with TextColor

TreeNodeAdv doesn''t set the proper color for its display text - this is easily seen in the node collection editor by setting text color to red or blue. The reason for this is inside TreeNodeAdv''s DrawText() method. In 3.2.1.0, this is at line 3428 of TreeNodeAdv.cs, where it calls NativeMethods.SetTextColor( hdc, eaEventArgs.ForeColor.ToArgb() & 0xFFFFFF ); However, the documentation for the Windows GDI function which is being called here shows that it expects a COLORREF, which has the format 0x00BBGGRR. The ToArgb() function returns its values as AARRGGBB, so the red and blue components of the color are getting swapped (and in fact that is what is seen in the control.)

1 Reply

DT Deepa TS Syncfusion Team November 16, 2005 05:01 AM UTC

Hi Ben, This is an already known issue and it has been fixed in the latest build V3.3. I recommend you to upgrade to this version. It is now available for download at the following link: http://www.syncfusion.com/squiffler/patches/v3.3.0.0/SyncfusionEssentialStudioSetup.exe It can also be downloaded from our Products page at http://www.syncfusion.com/downloads/product.aspx Please let me know if you have any questions. We appreciate your interest in Syncfusion products. Regards, Deepa.T.S

Loader.
Live Chat Icon For mobile
Up arrow icon