[Mono-winforms-list] XPLook and feel cleanups for SWF.RadioButton

Peter Dennis Bartok peter@novonyx.com
Mon, 27 Sep 2004 11:48:48 -0600

>All looks well (if you ignore the AA issues with cairo), but I did get
>stuck on one item, the FlatStyle.Popup property.
>The way the radio button renders now it actually calls DrawButton() in
>the theme engine, but passes in a ButtonState enumeration that indicates
>it's a radio button. My problem is that there doesn't seem to be a way
>to pass in the FlatStyle.Popup state into the DrawButton() method using
>the current setup. The ButtonState enum doesn't seem to hold enough
>values for us to indicate that the radio is to be rendered like a flat
>radio when no hover, and then like a normal radio when hovered.

Ok, I am probably not understanding something. But by your description, why 
don't you call DrawRadioButton(g, rect, ButtonState.Flat) when not hovering, 
and DrawRadioButton(g, rect, ButtonState.Normal) when hovering?