[solved] v17 BUG - DrawButtonText ignores color |
Post Reply |
Author | |
MacW
Senior Member Joined: 26 June 2007 Status: Offline Points: 253 |
Post Options
Thanks(1)
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? |
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
Hi, this has been already fixed (from v17.1).
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |