Print Page | Close Window

different text colors for CXTPButton states

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=13287
Printed Date: 23 June 2025 at 6:30am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: different text colors for CXTPButton states
Posted By: evoX
Subject: different text colors for CXTPButton states
Date Posted: 29 January 2009 at 8:03pm

How can I change the text color of a CXTPButton when the mouse cursor is over and off ?

 



-------------
Product: Xtreme ToolkitPro 19.30
Platform: Windows 10 64bit
Language: Visual C++ (VS 2019)



Replies:
Posted By: Oleg
Date Posted: 30 January 2009 at 3:03am
Hi,
 
You can override GetButtonTextColor method and return color you need when IsHighlighted() is true.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: evoX
Date Posted: 31 January 2009 at 7:48am
Thanks !
it would be much easier if you can implement in a future version a SetTextColor member for CXTPButton


-------------
Product: Xtreme ToolkitPro 19.30
Platform: Windows 10 64bit
Language: Visual C++ (VS 2019)



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