Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - CXTPControlLabel skinning problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPControlLabel skinning problem

 Post Reply Post Reply
Author
Message
mojonez View Drop Down
Groupie
Groupie


Joined: 16 September 2008
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote mojonez Quote  Post ReplyReply Direct Link To This Post Topic: CXTPControlLabel skinning problem
    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
 
 
 
 
 
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.