![]() |
Dialog themes |
Post Reply
|
| Author | |
JamesP
Groupie
Joined: 07 January 2009 Location: United Kingdom Status: Offline Points: 73 |
Post Options
Thanks(0)
Quote Reply
Topic: Dialog themesPosted: 08 January 2009 at 12:15pm |
|
We're trying to implement the Ribbon Bar in our applications and would like the Dialogs that appear to have the same Office 2007 look.
Do I have to learn how to implement Skins and if so can anyone point me in the right direction.
Thanks
|
|
![]() |
|
SuperMario
Senior Member
Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 January 2009 at 2:10pm |
|
You need skins.
Try something like: SkinFramework.LoadSkin App.Path + _ XTPSkinManager()->LoadSkin(_T("..\..\..\Styles\WinXP.Luna.cjstyles"), _T("NormalBlue.ini")); XTPSkinManager()->SetAutoApplyNewWindows(FALSE); XTPSkinManager()->ApplyWindow(pWnd->GetSafeHwnd()); |
|
![]() |
|
JamesP
Groupie
Joined: 07 January 2009 Location: United Kingdom Status: Offline Points: 73 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 January 2009 at 9:57am |
|
A simple call to LoadSkin worked perfectly, thanks. Unfortunately, this has got us excited about using Skins and I can't see a way of changing the Ribbon to match the loaded skin.
Do I need to call a function to apply the skin to the MainFrame, maybe with a call like XTPSkinManager()->ApplyWindow(afxGetMainWnd())?
|
|
![]() |
|
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 |