Esempio n. 1
0
 /// <summary>
 /// 设计器支持所需的方法 - 不要使用代码编辑器
 /// 修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(TSWinTopPanel));
     this.panBack = new System.Windows.Forms.Panel();
     this.picLog  = new System.Windows.Forms.PictureBox();
     this.lblText = new System.Windows.Forms.Label();
     this.panBack.SuspendLayout();
     this.SuspendLayout();
     //
     // panBack
     //
     this.panBack.BackColor   = System.Drawing.SystemColors.ActiveCaptionText;
     this.panBack.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.panBack.Controls.Add(this.picLog);
     this.panBack.Controls.Add(this.lblText);
     this.panBack.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panBack.Location = new System.Drawing.Point(0, 0);
     this.panBack.Name     = "panBack";
     this.panBack.Size     = new System.Drawing.Size(754, 51);
     this.panBack.TabIndex = 0;
     //
     // picLog
     //
     this.picLog.Dock     = System.Windows.Forms.DockStyle.Right;
     this.picLog.Image    = ((System.Drawing.Image)(resources.GetObject("picLog.Image")));
     this.picLog.Location = new System.Drawing.Point(412, 0);
     this.picLog.Name     = "picLog";
     this.picLog.Size     = new System.Drawing.Size(338, 47);
     this.picLog.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     this.picLog.TabIndex = 1;
     this.picLog.TabStop  = false;
     //
     // lblText
     //
     this.lblText.AutoSize  = true;
     this.lblText.Dock      = System.Windows.Forms.DockStyle.Left;
     this.lblText.Font      = new System.Drawing.Font("楷体_GB2312", 30F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
     this.lblText.ForeColor = System.Drawing.Color.DodgerBlue;
     this.lblText.Location  = new System.Drawing.Point(0, 0);
     this.lblText.Name      = "lblText";
     this.lblText.Size      = new System.Drawing.Size(138, 49);
     this.lblText.TabIndex  = 0;
     this.lblText.Text      = "<标题>";
     this.lblText.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // TSWinTopPanel
     //
     this.Controls.Add(this.panBack);
     this.Name = "TSWinTopPanel";
     this.Size = new System.Drawing.Size(754, 51);
     this.panBack.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Esempio n. 2
0
        public static BorderType ToEto(this swf.BorderStyle border)
        {
            switch (border)
            {
            case swf.BorderStyle.FixedSingle:
                return(BorderType.Line);

            case swf.BorderStyle.None:
                return(BorderType.None);

            case swf.BorderStyle.Fixed3D:
                return(BorderType.Bezel);

            default:
                throw new NotSupportedException();
            }
        }
Esempio n. 3
0
		public CheckBoxEx()
		{
			//text = "";
			bChecked = false;
			foreColor = SystemColors.ControlText;
			backColor = Color.Empty;
			textColor = SystemColors.ControlText;
			textBrush = new SolidBrush(textColor);
			forePen = new Pen(this.ForeColor);
			borderStyle = BorderStyle.None;
			checkState = CheckState.Unchecked;
			autoCheck = true;
			raiseEvent = false;
			hotClickArea = new Rectangle(2, 2, 14, 14);
			this.Font = new Font("Tahoma", 9F, FontStyle.Regular);
			this.Width = 70;
			this.Height = 20;
		}
Esempio n. 4
0
 public CheckBoxEx()
 {
     //text = "";
     bChecked     = false;
     foreColor    = SystemColors.ControlText;
     backColor    = Color.Empty;
     textColor    = SystemColors.ControlText;
     textBrush    = new SolidBrush(textColor);
     forePen      = new Pen(this.ForeColor);
     borderStyle  = BorderStyle.None;
     checkState   = CheckState.Unchecked;
     autoCheck    = true;
     raiseEvent   = false;
     hotClickArea = new Rectangle(2, 2, 14, 14);
     this.Font    = new Font("Tahoma", 9F, FontStyle.Regular);
     this.Width   = 70;
     this.Height  = 20;
 }
Esempio n. 5
0
 /// <summary>
 /// Initializes a new instance of the CheckBox2 class
 /// </summary>
 public CheckBox2()
 {
     InitializeComponent();
     using (Graphics g = this.CreateGraphics())
         m_scale = (int)StaticMethods.Scale(g);
     text         = Name;
     bChecked     = false;
     foreColor    = SystemColors.ControlText;
     backColor    = Color.Empty;
     textColor    = SystemColors.ControlText;
     textBrush    = new SolidBrush(textColor);
     forePen      = new Pen(this.ForeColor);
     borderStyle  = BorderStyle.None;
     checkState   = CheckState.Unchecked;
     autoCheck    = true;
     raiseEvent   = false;
     hotClickArea = new Rectangle(2, 2, CheckRectangleWidth, CheckRectangleHeight);
     this.Font    = new Font("Tahoma", 9F, FontStyle.Regular);
     this.Width   = 100 * m_scale;
     this.Height  = 20 * m_scale;
 }
Esempio n. 6
0
 public void setLabelBorderStyle(System.Windows.Forms.BorderStyle pBorderStyle)
 {
     this.lblText.BorderStyle = pBorderStyle;
 }
Esempio n. 7
0
        /// <summary>
        /// This procedure initializes the label. The label is faked by a textbox control.
        ///
        /// </summary>
        /// <returns>void</returns>
        private void InitializeLabel()
        {
            System.Int32 mXCoordStartLabel;
            System.Int32 mYCoordStartLabel;
            mXCoordStartLabel = this.GetXCoordStartLabel();

            // TLogging.Log('mXCoordStartLabel: ' + mXCoordStartLabel.ToString, [TLoggingType.ToLogfile]);
            this.lblLabel = new System.Windows.Forms.TextBox();
            this.lblLabel.Font =
                new System.Drawing.Font("Verdana", 7.25f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, (Byte)(0));
            this.lblLabel.Name = "lblLabel";
            this.lblLabel.TabIndex = 2;
            this.lblLabel.Text = "lblLabel";
            this.lblLabel.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
            this.lblLabel.Multiline = false;
            this.lblLabel.WordWrap = false;
            this.lblLabel.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.lblLabel.ReadOnly = true;
            this.lblLabel.Anchor =
                (System.Windows.Forms.AnchorStyles)(System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left |
                    System.Windows.Forms.AnchorStyles.Right);
            mYCoordStartLabel = this.GetYCoordStartLabel();
            this.lblLabel.Width = (this.Width - mXCoordStartLabel - 1);
            this.lblLabel.TabStop = false;

            // Tag needed to prevent CustomEnablingDisabling of 'customDisabling' this field
            this.lblLabel.Tag = "dontdisable";
            this.lblLabel.Location = new System.Drawing.Point(mXCoordStartLabel, mYCoordStartLabel);
            this.lblLabel.Resize += new System.EventHandler(this.LblLabel_Resize);
            this.Controls.Add(this.lblLabel);
        }