CommandBars highlight button |
Post Reply |
Author | |
cdiasdev
Groupie Joined: 27 March 2017 Location: Brasil Status: Offline Points: 19 |
Post Options
Thanks(0)
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? |
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
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 |
|
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 |