Discussion:
color button
(too old to reply)
J-F Portala
2012-09-03 15:07:51 UTC
Permalink
Hi,

I have the following problem.
I would like to display colored buttons dynamically.
It seems not porrible with the CButton class.
I have found a class clrButton deriving from CButton which permits this but
when the number of button is important (about 30), it is impossible to push
buttons rapidly.
(3 times in a second -> only 2 events are taken into account).
Without coloring buttons (normal mode), you can push as fast as you can
buttons, you have each time an event.

Do you know solutions for that ?

thank you for your help

Jeff
ScottMcP [MVP]
2012-09-03 16:55:39 UTC
Permalink
If you give a CButton the owner-draw style then you can paint it any way that you like. Look for the many examples at www.codeproject.com
c***@gmail.com
2013-09-06 23:48:02 UTC
Permalink
Post by J-F Portala
Hi,
I have the following problem.
I would like to display colored buttons dynamically.
It seems not porrible with the CButton class.
I have found a class clrButton deriving from CButton which permits this but
when the number of button is important (about 30), it is impossible to push
buttons rapidly.
(3 times in a second -> only 2 events are taken into account).
Without coloring buttons (normal mode), you can push as fast as you can
buttons, you have each time an event.
Do you know solutions for that ?
thank you for your help
Jeff
Loading...