Print Page | Close Window

Office themes not working

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=23363
Printed Date: 23 December 2024 at 10:40am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Office themes not working
Posted By: terrym
Subject: Office themes not working
Date Posted: 07 June 2017 at 10:38am
I have am changing my application to use the Office2007.dll and Office2013.dll theme using the following code:

XTPThemeDLL()->SetHandle(xtpIniOffice2007Blue);
CXTPPaintManager::SetTheme(xtpThemeRibbon);

However when calling any code that needs resources, i.e. below, pImage is NULL

CXTPResourceImage* pImage = LoadImage(_T("WORKSPACETOPLEFT"));

Any ideas please?



-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey



Replies:
Posted By: terrym
Date Posted: 09 June 2017 at 6:11am
I have am changing my application to use the Office2007.dll and Office2013.dll theme using the following code:

XTPThemeDLL()->SetHandle(xtpIniOffice2007Blue);
CXTPPaintManager::SetTheme(xtpThemeRibbon);

However when calling any code that internally to the SDK that needs resources, i.e. below, pImage is set to NULL as it fails to load the resource

CXTPResourceImage* pImage = LoadImage(_T("WORKSPACETOPLEFT"));

Any help much appreciated


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey


Posted By: rdhd
Date Posted: 20 June 2017 at 11:30am
I seem to recall when we moved to newer office themes I found that some of the images I was using were not available in the newer theme. I was using some of the ribbon group images and I think CJ stopped using images and started drawing gradients or something like that.

Basically you can't rely on the same images to be in all themes.


Posted By: terrym
Date Posted: 20 June 2017 at 11:33am
Thanks, much appreciated

-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey



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