internal override void paintBackground(Graphics g, Rectangle rect, Color bgColor, Color fgColor, bool keepColor) { Rectangle rectImage = this.getRectangle(); ControlRenderer.PaintBackGround(g, rectImage, bgColor, true); // no background }
/// <summary> /// paint background /// </summary> /// <param name = "g"></param> /// <param name = "rect"></param> /// <param name = "bgColor"></param> /// <param name = "fgColor"></param> /// <param name = "keepColor"></param> internal virtual void paintBackground(Graphics g, Rectangle rect, Color bgColor, Color fgColor, bool keepColor) { #if PocketPC offsetStaticControlRect(ref rect); #endif if (GuiMgControl.SupportGradient() && keepColor) { ControlRenderer.FillRectAccordingToGradientStyle(g, rect, BgColor, FgColor, Style, false, GradientColor, GradientStyle); } else { ControlRenderer.PaintBackGround(g, rect, bgColor, true); } }