Print Page | Close Window

Ribbon not Skinning

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=21764
Printed Date: 25 November 2024 at 5:18am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Ribbon not Skinning
Posted By: jcollier
Subject: Ribbon not Skinning
Date Posted: 02 July 2013 at 2:32pm
I just upgraded from 15.2.1 to 16.2.0 and now the ribbon bar I have is not skinning. No matter what skin I choose, it's black. All I can see are the buttons. Uploaded screenshots will show what I'm talking about. I haven't been able to figure out what code I need to change to fix it. I've put the new style files into the proper location but to no avail. Any help would be appreciated.







Replies:
Posted By: SuperMario
Date Posted: 02 July 2013 at 3:48pm
You need to set the style before setting the theme.


Posted By: McKloony
Date Posted: 06 July 2013 at 3:32am
You have to make sure that you set all the properties of the CommandBar and RibbonBar objects after you have added the CommandBarControls. Thereafter, it is necessary to perform the "PaintManager.RefreshMetrics" and "RecalcLayout" functions.

-------------
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6


Posted By: jcollier
Date Posted: 08 July 2013 at 2:11pm
Ok, sorry to be slow but I'm confused.

Here is my code to load the skin (in a sub):

SkinFramework.LoadSkin appath + "Office2007.cjstyles", ""
SkinFramework.ApplyOptions = SkinFramework.ApplyOptions Or xtpSkinApplyMetrics
SkinFramework.ApplyWindow Me.hWnd

After this I set up the ribbon bar in a separate sub. I've tried adding the following to the end of the sub with no luck:

CommandBars.PaintManager.RefreshMetrics
CommandBars.RecalcLayout


Posted By: SuperMario
Date Posted: 10 July 2013 at 2:22pm
Ribbon handles its own "skins" not the skin framework.  See the ribbon sample.



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