CXTPButton::GetButtonBackColor doesn't work |
Post Reply |
Author | |
UglySwede
Groupie Joined: 27 February 2013 Location: Sweden Status: Offline Points: 17 |
Post Options
Thanks(0)
Posted: 24 September 2020 at 1:31pm |
Hi!
I want to set the background color for a CXTPButton control, but I can't get it to work. :-( I override the virtual GetButtonBackColor() and return the COLORREF I want. (Like in http://forum.codejock.com/forum_posts.asp?TID=18969&title=cxtpbutton) But nothing happens. I override GetButtonTextColor() the same way to set the text color, and that works fine. (I'm not using SetTheme. My application uses skins, but it doesn't help if I disable all skinning.) Any idea what could be wrong? I'd be very grateful for any help! :-) I'm currently using Toolkit Pro 18.6, but will be upgrading to 19.2 soon. /Anders from Sweden |
|
UglySwede
Groupie Joined: 27 February 2013 Location: Sweden Status: Offline Points: 17 |
Post Options
Thanks(1)
|
I found this myself. You have to call SetUseVisualStyle(FALSE) for the button - otherwise GetButtonBackColor() never gets called. /Anders |
|
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 |