示例#1
0
 // Methods
 public ButtonEx()
 {
     this.Size                = new Size(130, 63);
     this._toolTip            = new ToolTip();
     this._toolTipText        = "";
     this._activeleftLineSize = 5;
     this._borderSkin         = new BorderSkin(this);
     this._iconSkin           = new IconSkin(this);
     this._colorSkin          = new ColorSkin(this);
     this._activeBackColor    = Color.Transparent;
 }
示例#2
0
        // Methods
        public TabControlEx()
        {
            _borderSkin           = new BorderSkin(this);
            this._backgroundColor = Color.White;
            this._borderSkin.ColorSkin.ActiveColor = Color.FromArgb(254, 139, 37);
            this._borderSkin.ColorSkin.NomalColor  = Color.FromArgb(47, 53, 58);

            base.SetStyle(
                ControlStyles.UserPaint |                      // 控件将自行绘制,而不是通过操作系统来绘制
                ControlStyles.OptimizedDoubleBuffer |          // 该控件首先在缓冲区中绘制,而不是直接绘制到屏幕上,这样可以减少闪烁
                ControlStyles.AllPaintingInWmPaint |           // 控件将忽略 WM_ERASEBKGND 窗口消息以减少闪烁
                ControlStyles.ResizeRedraw |                   // 在调整控件大小时重绘控件
                ControlStyles.SupportsTransparentBackColor,    // 控件接受 alpha 组件小于 255 的 BackColor 以模拟透明
                true);                                         // 设置以上值为 true
            base.UpdateStyles();
        }
示例#3
0
 // Methods
 public TextBoxBtnEx()
 {
     InitializeComponent();
     this._borderSkin = new BorderSkin(this);
     _readOnly        = true;
 }
示例#4
0
 // Methods
 public DateTimePickerEx()
 {
     InitializeComponent();
     this._borderSkin = new BorderSkin(this);
     this.BackColor   = Color.White;
 }
示例#5
0
 // Methods
 public TextBoxEx()
 {
     InitializeComponent();
     this._borderSkin = new BorderSkin(this);
     this._borderSkin.ColorSkin.NomalColor = this.panelBorder.BorderSkin.ColorSkin.NomalColor = Color.LightGray;
 }
示例#6
0
 // Methods
 public PanelEx()
 {
     this._borderSkin = new BorderSkin(this);
 }
示例#7
0
 // Methods
 public NumericUpDownEx()
 {
     InitializeComponent();
     this._borderSkin = new BorderSkin(this);
     this._borderSkin.ColorSkin.NomalColor = Color.LightGray;
 }