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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

TreeNodeAdv bug with TextColor

Thread ID:





37076 Nov 15,2005 05:52 PM UTC Nov 16,2005 05:01 AM UTC WinForms 1
Tags: Tools
Ben Carter
Asked On November 15, 2005 05:52 PM UTC

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, 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.)

Deepa TS [Syncfusion]
Replied On 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


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon