Пример #1
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this._editSubject = new JetRichTextBox();
     this._editDate    = new System.Windows.Forms.TextBox();
     this._gradientBar = new GUIControls.GradientBar();
     this.SuspendLayout();
     //
     // _editSubject
     //
     this._editSubject.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                      | System.Windows.Forms.AnchorStyles.Right)));
     this._editSubject.BorderStyle   = System.Windows.Forms.BorderStyle.None;
     this._editSubject.Font          = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204)));
     this._editSubject.ForeColor     = System.Drawing.SystemColors.WindowText;
     this._editSubject.HideSelection = false;
     this._editSubject.Location      = new System.Drawing.Point(4, 4);
     this._editSubject.Name          = "_editSubject";
     this._editSubject.ReadOnly      = true;
     this._editSubject.Size          = new System.Drawing.Size(336, 16);
     this._editSubject.TabIndex      = 5;
     this._editSubject.Text          = "";
     this._editSubject.KeyDown      += new System.Windows.Forms.KeyEventHandler(this._editSubject_KeyDown);
     //
     // _editDate
     //
     this._editDate.Anchor      = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this._editDate.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this._editDate.Font        = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204)));
     this._editDate.ForeColor   = System.Drawing.SystemColors.ControlDarkDark;
     this._editDate.Location    = new System.Drawing.Point(384, 4);
     this._editDate.Name        = "_editDate";
     this._editDate.ReadOnly    = true;
     this._editDate.Size        = new System.Drawing.Size(120, 14);
     this._editDate.TabIndex    = 7;
     this._editDate.Text        = "";
     //
     // _gradientBar
     //
     this._gradientBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                      | System.Windows.Forms.AnchorStyles.Right)));
     this._gradientBar.EndColor     = System.Drawing.Color.White;
     this._gradientBar.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal;
     this._gradientBar.Location     = new System.Drawing.Point(4, 22);
     this._gradientBar.Name         = "_gradientBar";
     this._gradientBar.Size         = new System.Drawing.Size(504, 1);
     this._gradientBar.StartColor   = System.Drawing.SystemColors.ControlDarkDark;
     this._gradientBar.TabIndex     = 10;
     //
     // MailBodyHeaderCtrl
     //
     this.BackColor = System.Drawing.SystemColors.Window;
     this.Controls.Add(this._gradientBar);
     this.Controls.Add(this._editDate);
     this.Controls.Add(this._editSubject);
     this.Name = "MailBodyHeaderCtrl";
     this.Size = new System.Drawing.Size(512, 24);
     this.ResumeLayout(false);
 }
Пример #2
0
        private Control OnCreateSeparator()
        {
            GradientBar bar = new GradientBar();

            bar.Size         = new Size(_borderPanel.Width, 1);
            bar.Anchor       = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;
            bar.StartColor   = Color.FromArgb(184, 181, 200);
            bar.EndColor     = bar.StartColor;
            bar.GradientMode = LinearGradientMode.Vertical;
            return(bar);
        }