Print Page | Close Window

CommandBars highlight button

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=23617
Printed Date: 16 April 2024 at 6:51pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CommandBars highlight button
Posted By: cdiasdev
Subject: CommandBars highlight button
Date Posted: 24 March 2018 at 11:49pm
Hi!

I'm using the CommandBars with ToolbarVisualTheme = xtpThemeVisualStudio2012Light. How to change highlight properties of de button? Support another color?




Replies:
Posted By: olebed
Date Posted: 26 March 2018 at 6:42am
Hello,

We recommend to use our theme VisualStudio2015. It is better than vs2012 because a lot colors of vs2012 are hardcoded in C++. And vs2015 theme can be better tweaked through INI files in VisualStudio2015.dll. 

Themes consist from many files (png, icons, xaml, ini). So they are compiled in one DLL library to be useful to copying or replacing together. These DLLs are compiled from simple Visual Studio projects. In latest version 18.3 we included source and resource files to ActiveX products. You can find these projects in folder Samples\Styles\ For SuitePro this path looks like below:

c:\Program Files (x86)\Codejock Software\ActiveX\Xtreme SuitePro ActiveX v18.3.0\Samples\Styles\VisualStudio2015
Also there you can find projects for all our themes.

To change highlight properties of de button on CommandBar  you need to change in VisualStudio2015Light.ini file in section [CommandBars.Toolbar] variable "ButtonBackHighlight" and "ButtonBorderHighlight" to desired color. It is 3 decimal number which appropriate to RGB (red green blue). These INI files sensitive to mistakes so please save formating to prevent errors on loading in runtime.

Then rebuild project in any VisualStudio from version 6.0 . VisualStudios with higher versions will ask you about upgrading project to new version - it is ok. After upgrading you need to Rebuild project (main menu Build > Rebuild) or press F7. New library you can find in folder Samples\Styles\ . Then you should replace old library in your application with this new one.

Also you can use some "resource hacker" applications to change files in theme DLLs without rebuilding.

Regards,
 Oleksandr Lebed



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