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.
Unfortunately, activation email could not send to your email. Please try again.

TreeNodeAdv bug with TextColor

Thread ID:

Created:

Updated:

Platform:

Replies:

37076 Nov 15,2005 12:52 PM Nov 16,2005 12:01 AM Windows Forms 1
loading
Tags: Tools
Ben Carter
Asked On November 15, 2005 12:52 PM

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

Deepa TS [Syncfusion]
Replied On November 16, 2005 12:01 AM

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

CONFIRMATION

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.

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.

;