public STForm(ITheme m_visualTheme, int width, int height) : base() { this.m_visualTheme = m_visualTheme; this.Icon = Converter.BitmapToIcon(TrailsPlugin.Properties.Resources.trails); this.BackColor = this.m_visualTheme.Control; this.Size = new System.Drawing.Size(width, height); ZoneFiveSoftware.Common.Visuals.Button okButton = new ZoneFiveSoftware.Common.Visuals.Button(); ZoneFiveSoftware.Common.Visuals.Button cancelButton = new ZoneFiveSoftware.Common.Visuals.Button(); this.Controls.Add(okButton); this.Controls.Add(cancelButton); this.AcceptButton = okButton; this.CancelButton = cancelButton; cancelButton.Location = new System.Drawing.Point(this.Size.Width - 27 - cancelButton.Size.Width, this.Height - 44 - cancelButton.Height); cancelButton.DialogResult = DialogResult.Cancel; okButton.Location = new System.Drawing.Point(cancelButton.Left - 10 - okButton.Size.Width, this.Height - 44 - okButton.Height); okButton.DialogResult = DialogResult.OK; okButton.Text = ZoneFiveSoftware.Common.Visuals.CommonResources.Text.ActionOk; cancelButton.Text = ZoneFiveSoftware.Common.Visuals.CommonResources.Text.ActionCancel; okButton.Click += new EventHandler(Btn_Click); cancelButton.Click += new EventHandler(Btn_Click); }
private void InitializeComponent() { this.yes = new ZoneFiveSoftware.Common.Visuals.Button(); this.textBox1 = new ZoneFiveSoftware.Common.Visuals.TextBox(); this.no = new ZoneFiveSoftware.Common.Visuals.Button(); this.SuspendLayout(); // // yes // this.yes.Location = new System.Drawing.Point(54, 96); this.yes.Name = "yes"; this.yes.Size = new System.Drawing.Size(75, 23); this.yes.TabIndex = 1; this.yes.Text = CommonResources.Text.ActionYes; //this.yes.UseVisualStyleBackColor = true; this.yes.Click += new System.EventHandler(this.ok_Click); // // textBox1 // this.textBox1.Location = new System.Drawing.Point(13, 13); this.textBox1.Multiline = true; this.textBox1.Name = "textBox1"; this.textBox1.ReadOnly = true; //this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; this.textBox1.Size = new System.Drawing.Size(256, 77); this.textBox1.TabIndex = 2; // // no // this.no.Location = new System.Drawing.Point(135, 96); this.no.Name = "no"; this.no.Size = new System.Drawing.Size(75, 23); this.no.TabIndex = 3; this.no.Text = CommonResources.Text.ActionNo; //this.no.UseVisualStyleBackColor = true; this.no.Click += new System.EventHandler(this.no_Click); // // YesNoDialog // this.ClientSize = new System.Drawing.Size(281, 131); this.Controls.Add(this.no); this.Controls.Add(this.textBox1); this.Controls.Add(this.yes); this.Name = "YesNoDialog"; this.Text = StringResources.Question; this.ResumeLayout(false); this.PerformLayout(); }
private void InitializeComponent() { this.ok = new ZoneFiveSoftware.Common.Visuals.Button(); this.textBox1 = new ZoneFiveSoftware.Common.Visuals.TextBox(); this.SuspendLayout(); // // ok // this.ok.Location = new System.Drawing.Point(102, 96); this.ok.Name = "ok"; this.ok.Size = new System.Drawing.Size(75, 23); this.ok.TabIndex = 1; this.ok.Text = CommonResources.Text.ActionOk; //this.ok.UseVisualStyleBackColor = true; this.ok.Click += new System.EventHandler(this.ok_Click); // // textBox1 // this.textBox1.Location = new System.Drawing.Point(13, 13); this.textBox1.Multiline = true; this.textBox1.Name = "textBox1"; this.textBox1.ReadOnly = true; //this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; this.textBox1.Size = new System.Drawing.Size(256, 77); this.textBox1.TabIndex = 2; // // WarningDialog // this.ClientSize = new System.Drawing.Size(281, 131); this.Controls.Add(this.textBox1); this.Controls.Add(this.ok); this.Name = "WarningDialog"; this.StartPosition = System.Windows.Forms.FormStartPosition.WindowsDefaultBounds; this.Text = StringResources.Warning; this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(OverlaySaveImageInfoPage)); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.comboSize = new System.Windows.Forms.ComboBox(); this.comboType = new System.Windows.Forms.ComboBox(); this.label5 = new System.Windows.Forms.Label(); this.splitContainer1 = new System.Windows.Forms.SplitContainer(); this.txtSaveIn = new ZoneFiveSoftware.Common.Visuals.TextBox(); this.isSaveIn = new ZoneFiveSoftware.Common.Visuals.ItemSelectorBase(); this.panelCustom = new ZoneFiveSoftware.Common.Visuals.Panel(); this.txtXSize = new ZoneFiveSoftware.Common.Visuals.TextBox(); this.txtYSize = new ZoneFiveSoftware.Common.Visuals.TextBox(); this.txtFilename = new ZoneFiveSoftware.Common.Visuals.TextBox(); this.btnCancel = new ZoneFiveSoftware.Common.Visuals.Button(); this.btnOK = new ZoneFiveSoftware.Common.Visuals.Button(); this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); this.splitContainer1.SuspendLayout(); this.panelCustom.SuspendLayout(); this.SuspendLayout(); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point( 20, 13 ); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size( 46, 13 ); this.label1.TabIndex = 0; this.label1.Text = "Save in:"; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point( 20, 40 ); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size( 52, 13 ); this.label2.TabIndex = 1; this.label2.Text = "Filename:"; // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point( 20, 67 ); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size( 30, 13 ); this.label3.TabIndex = 2; this.label3.Text = "Size:"; // // label4 // this.label4.AutoSize = true; this.label4.Location = new System.Drawing.Point( 20, 94 ); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size( 34, 13 ); this.label4.TabIndex = 3; this.label4.Text = "Type:"; // // comboSize // this.comboSize.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboSize.FormattingEnabled = true; this.comboSize.Location = new System.Drawing.Point( 105, 64 ); this.comboSize.Name = "comboSize"; this.comboSize.Size = new System.Drawing.Size( 226, 21 ); this.comboSize.TabIndex = 3; this.comboSize.SelectedIndexChanged += new System.EventHandler( this.comboSize_SelectedIndexChanged ); // // comboType // this.comboType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboType.FormattingEnabled = true; this.comboType.Location = new System.Drawing.Point( 105, 91 ); this.comboType.Name = "comboType"; this.comboType.Size = new System.Drawing.Size( 226, 21 ); this.comboType.TabIndex = 6; // // label5 // this.label5.AutoSize = true; this.label5.Location = new System.Drawing.Point( 52, 3 ); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size( 12, 13 ); this.label5.TabIndex = 13; this.label5.Text = "x"; // // splitContainer1 // this.splitContainer1.Anchor = ( (System.Windows.Forms.AnchorStyles)( ( System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom ) ) ); this.splitContainer1.IsSplitterFixed = true; this.splitContainer1.Location = new System.Drawing.Point( -1, 0 ); this.splitContainer1.Margin = new System.Windows.Forms.Padding( 0 ); this.splitContainer1.Name = "splitContainer1"; this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal; // // splitContainer1.Panel1 // this.splitContainer1.Panel1.Controls.Add( this.txtSaveIn ); this.splitContainer1.Panel1.Controls.Add( this.isSaveIn ); this.splitContainer1.Panel1.Controls.Add( this.panelCustom ); this.splitContainer1.Panel1.Controls.Add( this.txtFilename ); this.splitContainer1.Panel1.Controls.Add( this.label1 ); this.splitContainer1.Panel1.Controls.Add( this.label4 ); this.splitContainer1.Panel1.Controls.Add( this.label2 ); this.splitContainer1.Panel1.Controls.Add( this.label3 ); this.splitContainer1.Panel1.Controls.Add( this.comboSize ); this.splitContainer1.Panel1.Controls.Add( this.comboType ); // // splitContainer1.Panel2 // this.splitContainer1.Panel2.BackColor = System.Drawing.SystemColors.ControlLight; this.splitContainer1.Panel2.Controls.Add( this.btnCancel ); this.splitContainer1.Panel2.Controls.Add( this.btnOK ); this.splitContainer1.Panel2.Paint += new System.Windows.Forms.PaintEventHandler( this.splitContainer1Panel2_Paint ); this.splitContainer1.Size = new System.Drawing.Size( 512, 199 ); this.splitContainer1.SplitterDistance = 156; this.splitContainer1.SplitterWidth = 1; this.splitContainer1.TabIndex = 14; this.splitContainer1.TabStop = false; // // txtSaveIn // this.txtSaveIn.AcceptsReturn = false; this.txtSaveIn.AcceptsTab = false; this.txtSaveIn.BackColor = System.Drawing.Color.White; this.txtSaveIn.BorderColor = System.Drawing.Color.FromArgb( ( (int)( ( (byte)( 123 ) ) ) ), ( (int)( ( (byte)( 114 ) ) ) ), ( (int)( ( (byte)( 108 ) ) ) ) ); this.txtSaveIn.ButtonImage = null; this.txtSaveIn.Location = new System.Drawing.Point( 104, 10 ); this.txtSaveIn.MaxLength = 32767; this.txtSaveIn.Multiline = false; this.txtSaveIn.Name = "txtSaveIn"; this.txtSaveIn.ReadOnly = false; this.txtSaveIn.ReadOnlyColor = System.Drawing.SystemColors.Control; this.txtSaveIn.ReadOnlyTextColor = System.Drawing.SystemColors.ControlLight; this.txtSaveIn.RightToLeft = System.Windows.Forms.RightToLeft.No; this.txtSaveIn.Size = new System.Drawing.Size( 325, 20 ); this.txtSaveIn.TabIndex = 1; this.txtSaveIn.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; // // isSaveIn // this.isSaveIn.BackColor = System.Drawing.Color.White; this.isSaveIn.BorderColor = System.Drawing.Color.FromArgb( ( (int)( ( (byte)( 123 ) ) ) ), ( (int)( ( (byte)( 114 ) ) ) ), ( (int)( ( (byte)( 108 ) ) ) ) ); this.isSaveIn.ButtonImage = ( (System.Drawing.Image)( resources.GetObject( "isSaveIn.ButtonImage" ) ) ); this.isSaveIn.ItemRenderer = null; this.isSaveIn.Location = new System.Drawing.Point( 104, 10 ); this.isSaveIn.Name = "isSaveIn"; this.isSaveIn.PopupItems = null; this.isSaveIn.ReadOnlyColor = System.Drawing.SystemColors.Control; this.isSaveIn.RightToLeft = System.Windows.Forms.RightToLeft.No; this.isSaveIn.SelectedItem = null; this.isSaveIn.Size = new System.Drawing.Size( 348, 20 ); this.isSaveIn.TabIndex = 21; this.isSaveIn.TabStop = false; // // panelCustom // this.panelCustom.Controls.Add( this.label5 ); this.panelCustom.Controls.Add( this.txtXSize ); this.panelCustom.Controls.Add( this.txtYSize ); this.panelCustom.Location = new System.Drawing.Point( 337, 64 ); this.panelCustom.Name = "panelCustom"; this.panelCustom.Size = new System.Drawing.Size( 115, 18 ); this.panelCustom.TabIndex = 18; this.panelCustom.Visible = false; // // txtXSize // this.txtXSize.AcceptsReturn = false; this.txtXSize.AcceptsTab = false; this.txtXSize.BackColor = System.Drawing.Color.White; this.txtXSize.BorderColor = System.Drawing.Color.FromArgb( ( (int)( ( (byte)( 123 ) ) ) ), ( (int)( ( (byte)( 114 ) ) ) ), ( (int)( ( (byte)( 108 ) ) ) ) ); this.txtXSize.ButtonImage = null; this.txtXSize.Location = new System.Drawing.Point( 0, 0 ); this.txtXSize.MaxLength = 5; this.txtXSize.Multiline = false; this.txtXSize.Name = "txtXSize"; this.txtXSize.ReadOnly = false; this.txtXSize.ReadOnlyColor = System.Drawing.SystemColors.Control; this.txtXSize.ReadOnlyTextColor = System.Drawing.SystemColors.ControlLight; this.txtXSize.RightToLeft = System.Windows.Forms.RightToLeft.No; this.txtXSize.Size = new System.Drawing.Size( 49, 19 ); this.txtXSize.TabIndex = 4; this.txtXSize.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; this.txtXSize.Validating += new System.ComponentModel.CancelEventHandler( this.txtXSize_Validating ); // // txtYSize // this.txtYSize.AcceptsReturn = false; this.txtYSize.AcceptsTab = false; this.txtYSize.BackColor = System.Drawing.Color.White; this.txtYSize.BorderColor = System.Drawing.Color.FromArgb( ( (int)( ( (byte)( 123 ) ) ) ), ( (int)( ( (byte)( 114 ) ) ) ), ( (int)( ( (byte)( 108 ) ) ) ) ); this.txtYSize.ButtonImage = null; this.txtYSize.Location = new System.Drawing.Point( 66, 0 ); this.txtYSize.MaxLength = 5; this.txtYSize.Multiline = false; this.txtYSize.Name = "txtYSize"; this.txtYSize.ReadOnly = false; this.txtYSize.ReadOnlyColor = System.Drawing.SystemColors.Control; this.txtYSize.ReadOnlyTextColor = System.Drawing.SystemColors.ControlLight; this.txtYSize.RightToLeft = System.Windows.Forms.RightToLeft.No; this.txtYSize.Size = new System.Drawing.Size( 49, 19 ); this.txtYSize.TabIndex = 5; this.txtYSize.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; this.txtYSize.Validating += new System.ComponentModel.CancelEventHandler( this.txtYSize_Validating ); // // txtFilename // this.txtFilename.AcceptsReturn = false; this.txtFilename.AcceptsTab = false; this.txtFilename.BackColor = System.Drawing.Color.White; this.txtFilename.BorderColor = System.Drawing.Color.FromArgb( ( (int)( ( (byte)( 123 ) ) ) ), ( (int)( ( (byte)( 114 ) ) ) ), ( (int)( ( (byte)( 108 ) ) ) ) ); this.txtFilename.ButtonImage = null; this.txtFilename.Location = new System.Drawing.Point( 104, 37 ); this.txtFilename.MaxLength = 32767; this.txtFilename.Multiline = false; this.txtFilename.Name = "txtFilename"; this.txtFilename.ReadOnly = false; this.txtFilename.ReadOnlyColor = System.Drawing.SystemColors.Control; this.txtFilename.ReadOnlyTextColor = System.Drawing.SystemColors.ControlLight; this.txtFilename.RightToLeft = System.Windows.Forms.RightToLeft.No; this.txtFilename.Size = new System.Drawing.Size( 348, 19 ); this.txtFilename.TabIndex = 2; this.txtFilename.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; // // btnCancel // this.btnCancel.BackColor = System.Drawing.Color.Transparent; this.btnCancel.BorderColor = System.Drawing.Color.FromArgb( ( (int)( ( (byte)( 100 ) ) ) ), ( (int)( ( (byte)( 40 ) ) ) ), ( (int)( ( (byte)( 50 ) ) ) ), ( (int)( ( (byte)( 120 ) ) ) ) ); this.btnCancel.CenterImage = null; this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCancel.HyperlinkStyle = false; this.btnCancel.ImageMargin = 2; this.btnCancel.LeftImage = null; this.btnCancel.Location = new System.Drawing.Point( 424, 10 ); this.btnCancel.Name = "btnCancel"; this.btnCancel.PushStyle = true; this.btnCancel.RightImage = null; this.btnCancel.Size = new System.Drawing.Size( 75, 23 ); this.btnCancel.TabIndex = 8; this.btnCancel.Text = "Cancel"; this.btnCancel.TextAlign = System.Drawing.StringAlignment.Center; this.btnCancel.TextLeftMargin = 2; this.btnCancel.TextRightMargin = 2; this.btnCancel.Click += new System.EventHandler( this.btnCancel_Click ); // // btnOK // this.btnOK.BackColor = System.Drawing.Color.Transparent; this.btnOK.BorderColor = System.Drawing.Color.FromArgb( ( (int)( ( (byte)( 100 ) ) ) ), ( (int)( ( (byte)( 40 ) ) ) ), ( (int)( ( (byte)( 50 ) ) ) ), ( (int)( ( (byte)( 120 ) ) ) ) ); this.btnOK.CenterImage = null; this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK; this.btnOK.HyperlinkStyle = false; this.btnOK.ImageMargin = 2; this.btnOK.LeftImage = null; this.btnOK.Location = new System.Drawing.Point( 340, 10 ); this.btnOK.Name = "btnOK"; this.btnOK.PushStyle = true; this.btnOK.RightImage = null; this.btnOK.Size = new System.Drawing.Size( 75, 23 ); this.btnOK.TabIndex = 7; this.btnOK.Text = "OK"; this.btnOK.TextAlign = System.Drawing.StringAlignment.Center; this.btnOK.TextLeftMargin = 2; this.btnOK.TextRightMargin = 2; this.btnOK.Click += new System.EventHandler( this.btnOK_Click ); // // OverlaySaveImageInfoPage // this.AcceptButton = this.btnOK; this.AutoScaleDimensions = new System.Drawing.SizeF( 6F, 13F ); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.btnCancel; this.ClientSize = new System.Drawing.Size( 508, 202 ); this.Controls.Add( this.splitContainer1 ); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.Icon = ( (System.Drawing.Icon)( resources.GetObject( "$this.Icon" ) ) ); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "OverlaySaveImageInfoPage"; this.ShowInTaskbar = false; this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; this.Text = "Save Image"; this.splitContainer1.Panel1.ResumeLayout( false ); this.splitContainer1.Panel1.PerformLayout(); this.splitContainer1.Panel2.ResumeLayout( false ); this.splitContainer1.ResumeLayout( false ); this.panelCustom.ResumeLayout( false ); this.panelCustom.PerformLayout(); this.ResumeLayout( false ); }