About Store Forum Documentation Contact



Post Reply 
Focused Control Color
Author Message
fatcoder Offline
Member

Post: #1
Focused Control Color
When a control such as a tab or a combobox is focused, it darkens to a dark grey color. How can we set that color that a control changes to when focused? I have had a good look around at the different options but can't seem to find anything.
01-11-2012 01:47 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Focused Control Color
you'll need to override virtual draw method and do custom drawing
please check tutorial
01-11-2012 03:03 PM
Find all posts by this user Quote this message in a reply
fatcoder Offline
Member

Post: #3
RE: Focused Control Color
I considered doing this, however the tutorials don't show how to draw the control the same way. I'm very happy with the way the controls are drawn by default, I just want to change that darkening.

Can you show an example of the button drawing code of how it is currently drawn, so that we can mimic that in our override control in order to keep the same drawing behaviour, but just change the focused color?
01-11-2012 11:43 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: Focused Control Color
I can consider adding source for Button::draw into the personal license
01-14-2012 05:26 PM
Find all posts by this user Quote this message in a reply
Post Reply