コード例 #1
0
ファイル: HeaderLabel.cs プロジェクト: TheGameratorT/pdn-enpg
        public HeaderLabel()
        {
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            SetStyle(ControlStyles.Opaque, true);
            SetStyle(ControlStyles.ResizeRedraw, true);
            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.Selectable, false);
            UI.InitScaling(null);
            TabStop        = false;
            DoubleBuffered = true;
            ResizeRedraw   = true;

            SuspendLayout();
            this.etchedLine = new EtchedLine();
            Controls.Add(this.etchedLine);
            Size = new Size(144, 14);
            ResumeLayout(false);
        }
コード例 #2
0
ファイル: HeaderLabel.cs プロジェクト: herbqiao/paint.net
        public HeaderLabel()
        {
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            SetStyle(ControlStyles.Opaque, true);
            SetStyle(ControlStyles.ResizeRedraw, true);
            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.Selectable, false);
            UI.InitScaling(null);
            TabStop = false;
            ForeColor = SystemColors.Highlight;
            DoubleBuffered = true;
            ResizeRedraw = true;

            SuspendLayout();
            this.etchedLine = new EtchedLine();
            Controls.Add(this.etchedLine);
            Size = new Size(144, 14);
            ResumeLayout(false);
        }