Print Page | Close Window

Dialog themes

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=13118
Printed Date: 28 February 2025 at 11:32am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Dialog themes
Posted By: JamesP
Subject: Dialog themes
Date Posted: 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



Replies:
Posted By: SuperMario
Date 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());




Posted By: JamesP
Date 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())?



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