Discussion:
TRadioButton color
(too old to reply)
Kent Olsen
2008-07-31 14:31:03 UTC
Permalink
What does it take to uses TRadioButtons such that the text is displayed in
one color and the color of the dot in the button is a run-time decision?


Thanks,
Kent
Vladimir Kananovich
2008-07-31 20:14:18 UTC
Permalink
not possible to be done easy.

at the moment it takes:
-to create a new component that has BS_OWNERDRAW in its window styles
or to make it without components
just CreateWindow with ("button", "caption", BS_OWNERDRAW|WS_CHILD,...)
and process message WM_DRAWITEM for the form (detect id of your control)
and draw anything you wish with any color, managing the radiostate of
it yourself.
- also you can read about WM_CTLCOLORBTN but I don't think it will help
good enough here
Post by Kent Olsen
What does it take to uses TRadioButtons such that the text is displayed in
one color and the color of the dot in the button is a run-time decision?
Thanks,
Kent
Loading...