Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - CommandBars highlight button
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CommandBars highlight button

 Post Reply Post Reply
Author
Message
cdiasdev View Drop Down
Groupie
Groupie


Joined: 27 March 2017
Location: Brasil
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote cdiasdev Quote  Post ReplyReply Direct Link To This Post Topic: CommandBars highlight button
    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?

Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post 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
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.172 seconds.