public override void DrawRadioButton (Graphics g, RadioButton rb, Rectangle glyphArea, Rectangle textBounds, Rectangle imageBounds, Rectangle clipRectangle)
{
// Draw Button Background
if (rb.FlatStyle == FlatStyle.Flat || rb.FlatStyle == FlatStyle.Popup) {
glyphArea.Height -= 2;
glyphArea.Width -= 2;
}
DrawRadioButtonGlyph (g, rb, glyphArea);
// If we have an image, draw it
if (imageBounds.Size != Size.Empty)
DrawRadioButtonImage (g, rb, imageBounds);
if (rb.Focused && rb.Enabled && rb.ShowFocusCues && textBounds.Size != Size.Empty)
DrawRadioButtonFocus (g, rb, textBounds);
// If we have text, draw it
if (textBounds != Rectangle.Empty)
DrawRadioButtonText (g, rb, textBounds);
}