Get theme Color from DLL |
Post Reply |
Author | |
gibra
Senior Member Joined: 31 October 2008 Location: Italy Status: Offline Points: 288 |
Post Options
Thanks(0)
Posted: 25 February 2010 at 6:35am |
Scenario:
VB2008 SP1 - Windows XP SP3
my form use a Ribbonbar, like RibbonSample.sln sample project shipped in SuitePro 13.2.1,
where I can change different Styles loading the appropriate library:
Office2007Black.dll, Office2007Aqua.dll, ...
I load the library using appropriate statement, example:
CommandBarsGlobalSettings.Office2007Images = IO.Path.GetDirectoryName(Application.ExecutablePath) + "\\..\\Styles\\Office2007Aqua.dll"
All work fine.
Now, what i would is to know how to get the colors (and images) from the current DLL loaded.
I know that DLL contains this info, then I have try to search if CommandBar control contains methods or properties to get them, but I not found nothing to help me.
Please note that I DON'T want change any colors or images in library!!!
I want simply retrieve colors (and images).
The goal is to use this settings to apply colors and images to other form.
I already know that I can apply theme style to other forms using the below statement:
CommandBars.EnableOffice2007FrameHandle(MyForm.Handle.ToInt32())
this change only the form border aspect, but doesn't change any other color. I.e. form BackColor, ForeColor still uses the System colors.
Also, when I use a PushButton with Appearance = 6 (xtpAppearanceOffice2007) when I apply the theme Office2007Black to the form, the PushButton still to use Office2007Blue theme, of course. I would be able to reflect the Black theme instead of Blue theme.
Briefly, I would achieve same results using the SkinControl which use .cjstyles.
Anyone can help me about?
Thank!
|
|
gibra
CJ SuiteControl v: 13.x to 19.x Windows 10 64bit VS2019 - VB6.0 SP6 <a href="http://nuke.vbcorner.net/Home/tabid/36/language/en-US/Default.aspx" rel="nofollow">VS/VB 6.0 Installer v6.8 |
|
tjsivies
Groupie Joined: 04 December 2006 Status: Offline Points: 42 |
Post Options
Thanks(0)
|
I too would like to be able to determine which set of colors are selected when the ribbon loads. This way I can show the user by checking a button the color that is selected. I note that this is not done in the sample projects.
Also where are the setting kept? In the registry? If so where? Thx Trevor Product: Xtreme SuitePro (ActiveX) version 13.3.0 Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 SP6 |
|
gibra
Senior Member Joined: 31 October 2008 Location: Italy Status: Offline Points: 288 |
Post Options
Thanks(0)
|
OK, after some test seem that the only way is to use together DLL library + SkinFramework (which use *.cjstyle libraries).
If you need help, I can make a sample project.
Let me know.
|
|
gibra
CJ SuiteControl v: 13.x to 19.x Windows 10 64bit VS2019 - VB6.0 SP6 <a href="http://nuke.vbcorner.net/Home/tabid/36/language/en-US/Default.aspx" rel="nofollow">VS/VB 6.0 Installer v6.8 |
|
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 |