Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

color button

50 views
Skip to first unread message

J-F Portala

unread,
Sep 3, 2012, 11:07:51 AM9/3/12
to
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]

unread,
Sep 3, 2012, 12:55:39 PM9/3/12
to J-F Portala
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

csam...@gmail.com

unread,
Sep 6, 2013, 7:48:02 PM9/6/13
to
0 new messages