U++ Forum - RDF feed
https://www.ultimatepp.org/forums/
Easiest way to change button color
https://www.ultimatepp.org/forums/index.php?t=rview&goto=26418&th=5170#msg_26418
Please consult which is the easiest way to make this button e.g. red? Theme I use is mostly classic, Win2000-style.
Thanks in forward.
P.S. I'd redefine Paint() virtual function filling control with custom color, but my label is a QTF with embedded images and I have no idea how to draw it.]]>Mindtraveller2010-04-30T11:29:39-00:00Re: Easiest way to change button color
https://www.ultimatepp.org/forums/index.php?t=rview&goto=26420&th=5170#msg_26420
I use chameleon style.
See examples and chameleon forum branch.]]>sergeynikitin2010-04-30T11:45:26-00:00Re: Easiest way to change button color
https://www.ultimatepp.org/forums/index.php?t=rview&goto=26422&th=5170#msg_26422
Mindtraveller2010-04-30T11:55:39-00:00Re: Easiest way to change button color
https://www.ultimatepp.org/forums/index.php?t=rview&goto=26423&th=5170#msg_26423
sergeynikitin2010-04-30T12:02:25-00:00Re: Easiest way to change button color
https://www.ultimatepp.org/forums/index.php?t=rview&goto=26427&th=5170#msg_26427
sergeynikitin wrote on Fri, 30 April 2010 08:02
Make Image with 2x2 (or 3x3) pixels of one color and use it as style.
Or you can use just Color Standard chameleon routine understands that.
Mirek]]>mirek2010-04-30T13:52:42-00:00Re: Easiest way to change button color
https://www.ultimatepp.org/forums/index.php?t=rview&goto=27178&th=5170#msg_27178
this thread.]]>mrjt2010-06-29T16:34:57-00:00Re: Easiest way to change button color
https://www.ultimatepp.org/forums/index.php?t=rview&goto=27189&th=5170#msg_27189
Finally I used the same method as you (and as Sergey proposed).
Using image as a background even helped making a little 3D-look for button (a little shiny for unpressed, a little dimmed for pressed).
I also used plain drawing to make it more clear which of buttons is selected (due to interface to be used inside factories, plain desktop GUI may not need these).
It looks like this:
]]>Mindtraveller2010-06-30T04:51:22-00:00Re: Easiest way to change button color
https://www.ultimatepp.org/forums/index.php?t=rview&goto=27190&th=5170#msg_27190
]]>Mindtraveller2010-06-30T04:54:11-00:00Re: Easiest way to change button color
https://www.ultimatepp.org/forums/index.php?t=rview&goto=27192&th=5170#msg_27192
]]>mr_ped2010-06-30T08:34:06-00:00Re: Easiest way to change button color
https://www.ultimatepp.org/forums/index.php?t=rview&goto=27200&th=5170#msg_27200
]]>mrjt2010-07-01T15:18:20-00:00