![]() |
Ribbon not Skinning |
Post Reply
|
| Author | |
SuperMario
Senior Member
Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
Quote Reply
Topic: Ribbon not SkinningPosted: 10 July 2013 at 2:22pm |
|
Ribbon handles its own "skins" not the skin framework. See the ribbon sample.
|
|
![]() |
|
jcollier
Senior Member
Joined: 15 February 2006 Status: Offline Points: 250 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
McKloony
Senior Member
Joined: 09 January 2007 Location: Germany Status: Offline Points: 340 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
SuperMario
Senior Member
Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 July 2013 at 3:48pm |
|
You need to set the style before setting the theme.
|
|
![]() |
|
jcollier
Senior Member
Joined: 15 February 2006 Status: Offline Points: 250 |
Post Options
Thanks(0)
Quote Reply
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.
![]() ![]() |
|
![]() |
|
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 |