custom controls - overwrite backcolor for ovalshape -
i'm trying use backcolor variable fill ovalshape. i'm doing because need set color @ runtime , custom control uses fillcolor instead of backcolor. color changed @ runtime using propertygrid.
i'm overwriting backcolor , works until click on ovalshape. if click on oval colors entire control not oval.
public override color backcolor { { if (oval == null) { return color.transparent; } else { return oval.fillcolor; } } set { if (oval == null) { base.backcolor = color.transparent; if (sc != null) sc.backcolor = color.transparent; } else { base.backcolor = color.transparent; if (sc != null) sc.backcolor = color.transparent; oval.fillcolor = value; } } }
sc shapecontainer.
i think problem when click control gets oval.fillcolor backcolor.
Comments
Post a Comment