Print Page | Close Window

Focus rectangle color of buttons

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=6669
Printed Date: 27 November 2024 at 8:09am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Focus rectangle color of buttons
Posted By: linfan
Subject: Focus rectangle color of buttons
Date Posted: 18 March 2007 at 8:46pm
I've created a new skin and set the button text to white, but the focus rectangle now looks like rectangle with a black solid frame, how to adjust the color of focus rectangle?



Replies:
Posted By: Oleg
Date Posted: 19 March 2007 at 2:09am
Hi, thanks we will fix this frame. You can change sources for now.
 
In CXTPSkinObjectButton::DrawButtonText method add
   pDC->SetTextColor(0);
   pDC->SetBkColor(0xFFFFFF);
before
::DrawFocusRect(pDC->GetSafeHdc(), &rc);


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


Posted By: linfan
Date Posted: 19 March 2007 at 7:12am
Thanks very much!



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