Print Page | Close Window

[solved] v17 BUG - DrawButtonText ignores color

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=22837
Printed Date: 23 December 2024 at 10:10pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [solved] v17 BUG - DrawButtonText ignores color
Posted By: MacW
Subject: [solved] v17 BUG - DrawButtonText ignores color
Date Posted: 11 January 2016 at 8:20am
CXTPButtonTheme::DrawButtonText

calls the virtual method

GetButtonTextColor()

to determine the color to draw the button text. In my case, this is white because the dialog background is dark gray.

This worked before. Now the method first sets the text color of the DC to the color returned by the virtual  GetButtonTextColor() method, but then overrides this in the line

if (bStyle & (BS_RADIOBUTTON | BS_AUTORADIOBUTTON | BS_CHECKBOX | BS_AUTOCHECKBOX))
    {
        pDC->SetTextColor(m_crTextCheck);
    }

It is no longer possible to use a custom text color with radio buttons or check boxes. Why is that? Are GetButtonTextColor no longer supported?





Replies:
Posted By: olebed
Date Posted: 07 July 2016 at 3:19pm
Hi, this has been already fixed  (from v17.1).



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net