Selectively Skin Controls |
Post Reply |
Author | |
IRMark
Groupie Joined: 13 July 2006 Status: Offline Points: 30 |
Post Options
Thanks(0)
Posted: 09 April 2010 at 2:25pm |
Hi Everyone,
I'm using Xtreeme Toolkit Pro 13.3. I've been trying to figure out if it was possible to only skin certain controls in an application as opposed to skinning the entire application? It seems that no matter what I do the entire application get's skinned. For some more information on what I am doing, imagine having a dialog where you want to skin the control, or some of the controls, but leave the main application windows unskinned? Or perhaps doing the same for a few CWnd's on the view? Thanks in advance! mark |
|
IRMark
Groupie Joined: 13 July 2006 Status: Offline Points: 30 |
Post Options
Thanks(0)
|
Hi,
Sorry to bump this, but does anyone have any ideas about this? |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
You can set SetAutoApplyNewWindows to False and remove
XTPSkinManager()->SetApplyOptions(XTPSkinManager()->GetApplyOptions() & ~xtpSkinApplyColors); Now you can manually apply skin to windows you only need. |
|
IRMark
Groupie Joined: 13 July 2006 Status: Offline Points: 30 |
Post Options
Thanks(0)
|
Hi SuperMario, Thanks for the reply. This is the code that I have been trying to use: XTPSkinManager()->SetAutoApplyNewWindows(FALSE); XTPSkinManager()->SetAutoApplyNewThreads(FALSE); XTPSkinManager()->SetApplyOptions(XTPSkinManager()->GetApplyOptions() & ~xtpSkinApplyColors); XTPSkinManager()->LoadSkin(strSkinFullPath, strSubStyle); Then I loop through the windows that I want to apply the skin to and do the following: CXTPSkinManager* pSkinManager = XTPSkinManager(); ASSERT(pSkinManager); if (pSkinManager) { pSkinManager->ApplyWindow(pWnd->m_hWnd); } But none of the windows theme at all? I'm sure this is possible and I'm just missing something simple? Anymore hints? Thanks. |
|
IRMark
Groupie Joined: 13 July 2006 Status: Offline Points: 30 |
Post Options
Thanks(0)
|
Sorry to bump this thread but it's been a while and I have not gotten a response.
Is what I'm looking for possible? Thanks. |
|
IRMark
Groupie Joined: 13 July 2006 Status: Offline Points: 30 |
Post Options
Thanks(0)
|
Anyone?
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Seems should work...
What kind of windows did you try to skin ? if you tried button and don't see result, check what value returned by LoadSkin - if FALSE, maybe something with skin path. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
IRMark
Groupie Joined: 13 July 2006 Status: Offline Points: 30 |
Post Options
Thanks(0)
|
Hi Oleg,
Thanks for getting back to me. I am trying to selectively skin a button (an CXTPButton actually), but it doesn't seems to work. LoadSkin() returns TRUE. I have tested with a few other controls and some of them "almost work". For example the drop downs for ComboBoxes will skin but the main ComboBox itself won't. If I don't remove the xtpSkinApplyColors then things will work, but all of the application will be skinned, which isn't what I want. I'm trying to show a preview of the skin that has been selected but I just can't get it working. Anymore tips? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
yes CXTPButton and some other that use CXTPWinThemeWrapper can't be individually turned on/off :( they use global CXTPWinThemeWrapper.
Replace it to system CButton. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |