Print Page | Close Window

CXTPControlLabel skinning problem

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=19420
Printed Date: 22 November 2024 at 7:31am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPControlLabel skinning problem
Posted By: mojonez
Subject: CXTPControlLabel skinning problem
Date Posted: 18 January 2012 at 2:57pm
Hey folks,
 
I have a command bar, created as such:
 
CXTPPopupBar* pPopupBar = CXTPPopupBar::CreatePopupBar(0);
pop->SetCommandBar(pPopupBar);
pControl = pop->GetCommandBar()->GetControls()->Add(new CXTPControlLabel(), 0);
My application uses a custom skin created with the SkinBuilder.  The command bar skins correctly.
 
I would like to set a unique bg color to the CXTPControlLabel, different from the standard button entries, but the theme does not seem to support this.
 
If i derive my own paint manager from the office theme CXTPOfficeTheme, then I can ovveride the drawpopuplabel, or just set m_arrColor[XPCOLOR_LABEL], but then them does not respect the rest of the CJ skin i created.
 
If i derive my own paint manager from CXTPNativeXPTheme, then the skin is respected, but there's no hook for intercepting or changing the labels BG color to be different from normal button entries.
 
Any ideas?
 
thx
 
Morgan
 
 
 
 
 



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