![]() |
Load Dinamically CommandBars |
Post Reply
|
| Author | ||
aldog@imaginesoft.co
Newbie
Joined: 09 March 2016 Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Topic: Load Dinamically CommandBarsPosted: 09 March 2016 at 12:45pm |
|
|
Hi everyone,
I'm trying to dynamically load the CommandBars control. For this I used the same example that comes with version 17, I removed the controls at design time, and then instantiate at runtime with: Set CommandBars = Me.Controls.Add("Codejock.CommandBars.17.1.0", "CommandBars") The problem is that dynamically loading background images are not loaded ![]() What am I doing wrong? |
||
![]() |
||
olebed
Senior Member
Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
Quote Reply
Posted: 10 March 2016 at 3:20am |
|
|
Hello aldog,
I suppose you forgot to load VisualStudio2015.dll before setting theme VisualStudio2015 (or other DLL for other theme)
You can explore our sample c:\Program Files (x86)\Codejock Software\ActiveX\Xtreme SuitePro ActiveX v17.1.0\Samples\CommandBars\VB\RibbonSample to see how set different themes in v17.1. In file frmMain.frm look for methods CreateRibbonBar, SetStyle, SetCommandbarsTheme and other. Regards, Oleksandr Lebed |
||
![]() |
||
aldog@imaginesoft.co
Newbie
Joined: 09 March 2016 Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Posted: 10 March 2016 at 2:46pm |
|
|
Hi olebed, thanks for answering
![]() I did what you say but still the same: ![]() |
||
![]() |
||
aldog@imaginesoft.co
Newbie
Joined: 09 March 2016 Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Posted: 10 March 2016 at 3:04pm |
|
|
I've gotten it to work, but the object does not assume the skin
Dynamically load: ![]() Design time load ![]() |
||
![]() |
||
olebed
Senior Member
Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
Quote Reply
Posted: 10 March 2016 at 4:11pm |
|
Also skins and themes are different technologies which have problems with compatibility. Screenshot under "Dynamically load:" - looks like Dark Gray Office2013 theme from file Office2013WordDarkGray.ini |
||
![]() |
||
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 |