Exemple #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;
 }
Exemple #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();
        }
Exemple #3
0
 // Methods
 public TextBoxBtnEx()
 {
     InitializeComponent();
     this._borderSkin = new BorderSkin(this);
     _readOnly        = true;
 }
Exemple #4
0
 // Methods
 public DateTimePickerEx()
 {
     InitializeComponent();
     this._borderSkin = new BorderSkin(this);
     this.BackColor   = Color.White;
 }
 // Methods
 public TextBoxEx()
 {
     InitializeComponent();
     this._borderSkin = new BorderSkin(this);
     this._borderSkin.ColorSkin.NomalColor = this.panelBorder.BorderSkin.ColorSkin.NomalColor = Color.LightGray;
 }
 // Methods
 public PanelEx()
 {
     this._borderSkin = new BorderSkin(this);
 }
Exemple #7
0
 // Methods
 public NumericUpDownEx()
 {
     InitializeComponent();
     this._borderSkin = new BorderSkin(this);
     this._borderSkin.ColorSkin.NomalColor = Color.LightGray;
 }