![]() |
Different schemes |
Post Reply ![]() |
Author | |
gmail ![]() Groupie ![]() Joined: 24 February 2008 Status: Offline Points: 45 |
![]() ![]() ![]() ![]() ![]() Posted: 14 December 2008 at 12:24pm |
In your sample 'Skin Controls' (DialogSample.cpp file) there is a section which states:
CDialog::OnInitDialog(); CXTPSkinManager* pSkinManager = XTPSkinManager(); CXTPSkinManagerSchema* pSchema = pSkinManager->CreateSchema(m_strStylesPath + _T("WinXP.Luna.cjstyles"), _T("NormalHomestead.ini")); pSkinManager->SetWindowTheme(GetSafeHwnd(), pSchema); CMDTARGET_RELEASE(pSchema); pSchema = pSkinManager->CreateSchema(m_strStylesPath + _T("WinXP.Royale.cjstyles"), _T("NormalRoyale.ini")); pSkinManager->SetWindowTheme(GetDlgItem(IDC_BUTTON_BLUE)->GetSafeHwnd(), pSchema); CMDTARGET_RELEASE(pSchema); pSchema = pSkinManager->CreateSchema(m_strStylesPath + _T("Vista.cjstyles"), _T("NormalBlue.ini")); pSkinManager->SetWindowTheme(button.GetSafeHwnd(), pSchema); CMDTARGET_RELEASE(pSchema); } If we replace GetDlgItem(IDC_BUTTON_BLUE) with b_Button (CXTPButton variable), those schemes doesn't work anymore (it loads application default theme)? How can we overcome this so every CXTPButton has different scheme (like your example with ordinary CButton)? Thanks for replying... |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Sorry only CButton can catch new skin :( CXTPButton can't
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Moritz ![]() Groupie ![]() ![]() Joined: 22 December 2005 Location: Germany Status: Offline Points: 11 |
![]() ![]() ![]() ![]() ![]() |
Hello Oleg, what can I do to enable CXTButton to show the new theme? What kind of sense makes such a function if it is not fully supported? Greetings, Moritz Leutenecker |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |