Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - Ctrl+Tab selection not using right text color.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Ctrl+Tab selection not using right text color.

 Post Reply Post Reply
Author
Message
Smucker View Drop Down
Senior Member
Senior Member
Avatar

Joined: 02 February 2008
Status: Offline
Points: 156
Post Options Post Options   Thanks (0) Thanks(0)   Quote Smucker Quote  Post ReplyReply Direct Link To This Post Topic: Ctrl+Tab selection not using right text color.
    Posted: 08 July 2008 at 12:53pm
The button highlight color in my skin is set to a very light yellow, but it's not being used in the Ctrl+Tab window (CXTPDockingPaneWindowSelect):

Product: Xtreme Toolkit Pro version 13.2 (Unicode, static build)

Platform: Windows 200x/XP/Vista/Win7 (32/64 bit)

Language: Visual C++ 9.0 (Studio 2008)

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 08 July 2008 at 3:23pm
Hi,
 
yes, OfficeXP buttons use COLOR_BTNTEXT always.
 
COLOR_BTNTEXT is black in your skin ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Smucker View Drop Down
Senior Member
Senior Member
Avatar

Joined: 02 February 2008
Status: Offline
Points: 156
Post Options Post Options   Thanks (0) Thanks(0)   Quote Smucker Quote  Post ReplyReply Direct Link To This Post Posted: 08 July 2008 at 3:44pm
Sorry, should have said button text color, not highlight. In my skin, the button text color (BtnText) is 255; 255; 204. All other places it displays fine, and GetSysColor(COLOR_BTNTEXT) returns the correct value. I'm only seeing the problem in the Ctrl+Tab window.

I found the problem in XTPDockingPaneKeyboardHook.cpp: in CXTPDockingPaneWindowSelect::OnPaint(), where the code at line 491 in 12.0.0:

  dc.SetTextColor(COLOR_BTNTEXT);

should be:

  dc.SetTextColor(GetSysColor(COLOR_BTNTEXT));


Product: Xtreme Toolkit Pro version 13.2 (Unicode, static build)

Platform: Windows 200x/XP/Vista/Win7 (32/64 bit)

Language: Visual C++ 9.0 (Studio 2008)

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 09 July 2008 at 4:48am
Ups :)
You're right. Fixed.
 
Thanks for help.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.