protected internal virtual void OnPaintScrollBarArrow(TCEventArgs.PaintScrollBarArrowEventArgs e) { Graphics graphics = e.Graphics; Rectangle arrowRectangle = e.ArrowRectangle; ControlState controlState = e.ControlState; ArrowDirection arrowDirection = e.ArrowDirection; Orientation orientation = e.Orientation; bool enabled = e.Enabled; Color backNormal = this.BackNormal; Color begin = this.Base; Color border = this.Border; Color innerBorder = this.InnerBorder; Color fore = this.Fore; bool changeColor = false; if (enabled) { switch (controlState) { case ControlState.Hover: begin = this.BackHover; goto Label_00BD; case ControlState.Pressed: begin = this.BackPressed; changeColor = true; goto Label_00BD; } begin = this.Base; } else { backNormal = this.GetGray(backNormal); begin = this.GetGray(this.Base); border = this.GetGray(border); fore = this.GetGray(fore); } Label_00BD: using (new SmoothingModeGraphics(graphics)) { ControlPaintEx.DrawScrollBarArraw(graphics, arrowRectangle, begin, backNormal, border, innerBorder, fore, e.Orientation, arrowDirection, changeColor); } }
void IScrollBarPaint.OnPaintScrollBarTrack(TCEventArgs.PaintScrollBarTrackEventArgs e) { this.OnPaintScrollBarTrack(e); }
void IScrollBarPaint.OnPaintScrollBarThumb(TCEventArgs.PaintScrollBarThumbEventArgs e) { this.OnPaintScrollBarThumb(e); }
void IScrollBarPaint.OnPaintScrollBarArrow(TCEventArgs.PaintScrollBarArrowEventArgs e) { this.OnPaintScrollBarArrow(e); }
protected internal virtual void OnPaintScrollBarTrack(TCEventArgs.PaintScrollBarTrackEventArgs e) { Graphics g = e.Graphics; Rectangle trackRectangle = e.TrackRectangle; Color gray = this.GetGray(this.Base); ControlPaintEx.DrawScrollBarTrack(g, trackRectangle, gray, Color.White, e.Orientation); }
protected internal virtual void OnPaintScrollBarThumb(TCEventArgs.PaintScrollBarThumbEventArgs e) { if (e.Enabled) { Graphics graphics = e.Graphics; Rectangle thumbRectangle = e.ThumbRectangle; ControlState controlState = e.ControlState; Color backNormal = this.BackNormal; Color begin = this.Base; Color border = this.Border; Color innerBorder = this.InnerBorder; bool changeColor = false; switch (controlState) { case ControlState.Hover: begin = this.BackHover; break; case ControlState.Pressed: begin = this.BackPressed; changeColor = true; break; default: begin = this.Base; break; } using (new SmoothingModeGraphics(graphics)) { ControlPaintEx.DrawScrollBarThumb(graphics, thumbRectangle, begin, backNormal, border, innerBorder, e.Orientation, changeColor); } } }