Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Ribbon not Skinning
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Ribbon not Skinning

 Post Reply Post Reply
Author
Message
jcollier View Drop Down
Senior Member
Senior Member


Joined: 15 February 2006
Status: Offline
Points: 250
Post Options Post Options   Thanks (0) Thanks(0)   Quote jcollier Quote  Post ReplyReply Direct Link To This Post Topic: Ribbon not Skinning
    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.




Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 02 July 2013 at 3:48pm
You need to set the style before setting the theme.
Back to Top
McKloony View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 January 2007
Location: Germany
Status: Offline
Points: 340
Post Options Post Options   Thanks (0) Thanks(0)   Quote McKloony Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
jcollier View Drop Down
Senior Member
Senior Member


Joined: 15 February 2006
Status: Offline
Points: 250
Post Options Post Options   Thanks (0) Thanks(0)   Quote jcollier Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 10 July 2013 at 2:22pm
Ribbon handles its own "skins" not the skin framework.  See the ribbon sample.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.219 seconds.