From 159170760f58f58a008ebe4cd7c5482521b7460e Mon Sep 17 00:00:00 2001 From: MarkWhybird Date: Thu, 23 Jun 2016 12:27:39 +1000 Subject: [PATCH] Madre preferences form resizable so i can see longer URLs --- PreferencesForm.Designer.cs | 80 ++++++++++++++++++++++++------------- 1 file changed, 53 insertions(+), 27 deletions(-) diff --git a/PreferencesForm.Designer.cs b/PreferencesForm.Designer.cs index 6d9658c..e4de59c 100644 --- a/PreferencesForm.Designer.cs +++ b/PreferencesForm.Designer.cs @@ -46,18 +46,20 @@ private void InitializeComponent() // label1 // this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(76, 9); + this.label1.Location = new System.Drawing.Point(101, 11); + this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(121, 13); + this.label1.Size = new System.Drawing.Size(158, 17); this.label1.TabIndex = 0; this.label1.Text = "Web Page Screensaver"; // // llProjectLocationUrl // this.llProjectLocationUrl.AutoSize = true; - this.llProjectLocationUrl.Location = new System.Drawing.Point(22, 25); + this.llProjectLocationUrl.Location = new System.Drawing.Point(29, 31); + this.llProjectLocationUrl.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.llProjectLocationUrl.Name = "llProjectLocationUrl"; - this.llProjectLocationUrl.Size = new System.Drawing.Size(233, 13); + this.llProjectLocationUrl.Size = new System.Drawing.Size(293, 17); this.llProjectLocationUrl.TabIndex = 1; this.llProjectLocationUrl.TabStop = true; this.llProjectLocationUrl.Text = "http://github.com/cwc/web-page-screensaver/"; @@ -66,18 +68,21 @@ private void InitializeComponent() // label2 // this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(12, 56); + this.label2.Location = new System.Drawing.Point(16, 69); + this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(76, 13); + this.label2.Size = new System.Drawing.Size(98, 17); this.label2.TabIndex = 2; this.label2.Text = "Website URLs"; // // okButton // + this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK; - this.okButton.Location = new System.Drawing.Point(102, 302); + this.okButton.Location = new System.Drawing.Point(136, 372); + this.okButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.okButton.Name = "okButton"; - this.okButton.Size = new System.Drawing.Size(75, 23); + this.okButton.Size = new System.Drawing.Size(100, 28); this.okButton.TabIndex = 4; this.okButton.Text = "OK"; this.okButton.UseVisualStyleBackColor = true; @@ -85,10 +90,12 @@ private void InitializeComponent() // // cancelButton // + this.cancelButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.cancelButton.Location = new System.Drawing.Point(183, 302); + this.cancelButton.Location = new System.Drawing.Point(244, 372); + this.cancelButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.cancelButton.Name = "cancelButton"; - this.cancelButton.Size = new System.Drawing.Size(75, 23); + this.cancelButton.Size = new System.Drawing.Size(100, 28); this.cancelButton.TabIndex = 5; this.cancelButton.Text = "Cancel"; this.cancelButton.UseVisualStyleBackColor = true; @@ -96,21 +103,25 @@ private void InitializeComponent() // // cbCloseOnActivity // + this.cbCloseOnActivity.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.cbCloseOnActivity.AutoSize = true; this.cbCloseOnActivity.Checked = true; this.cbCloseOnActivity.CheckState = System.Windows.Forms.CheckState.Checked; - this.cbCloseOnActivity.Location = new System.Drawing.Point(15, 256); + this.cbCloseOnActivity.Location = new System.Drawing.Point(20, 315); + this.cbCloseOnActivity.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.cbCloseOnActivity.Name = "cbCloseOnActivity"; - this.cbCloseOnActivity.Size = new System.Drawing.Size(153, 17); + this.cbCloseOnActivity.Size = new System.Drawing.Size(200, 21); this.cbCloseOnActivity.TabIndex = 6; this.cbCloseOnActivity.Text = "Close on mouse movement"; this.cbCloseOnActivity.UseVisualStyleBackColor = true; // // nudRotationInterval // - this.nudRotationInterval.Location = new System.Drawing.Point(15, 230); + this.nudRotationInterval.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.nudRotationInterval.Location = new System.Drawing.Point(20, 283); + this.nudRotationInterval.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.nudRotationInterval.Name = "nudRotationInterval"; - this.nudRotationInterval.Size = new System.Drawing.Size(40, 20); + this.nudRotationInterval.Size = new System.Drawing.Size(53, 22); this.nudRotationInterval.TabIndex = 7; this.nudRotationInterval.Value = new decimal(new int[] { 30, @@ -120,33 +131,45 @@ private void InitializeComponent() // // label3 // + this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(61, 232); + this.label3.Location = new System.Drawing.Point(81, 286); + this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(142, 13); + this.label3.Size = new System.Drawing.Size(188, 17); this.label3.TabIndex = 8; this.label3.Text = "Seconds to display each site"; // // lbUrls // + this.lbUrls.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this.lbUrls.FormattingEnabled = true; - this.lbUrls.Location = new System.Drawing.Point(15, 72); + this.lbUrls.ItemHeight = 16; + this.lbUrls.Location = new System.Drawing.Point(20, 89); + this.lbUrls.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.lbUrls.Name = "lbUrls"; - this.lbUrls.Size = new System.Drawing.Size(246, 121); + this.lbUrls.Size = new System.Drawing.Size(327, 148); this.lbUrls.TabIndex = 9; // // tbUrlToAdd // - this.tbUrlToAdd.Location = new System.Drawing.Point(15, 201); + this.tbUrlToAdd.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.tbUrlToAdd.Location = new System.Drawing.Point(20, 247); + this.tbUrlToAdd.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.tbUrlToAdd.Name = "tbUrlToAdd"; - this.tbUrlToAdd.Size = new System.Drawing.Size(181, 20); + this.tbUrlToAdd.Size = new System.Drawing.Size(240, 22); this.tbUrlToAdd.TabIndex = 10; // // addUrlButton // - this.addUrlButton.Location = new System.Drawing.Point(203, 199); + this.addUrlButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.addUrlButton.Location = new System.Drawing.Point(271, 245); + this.addUrlButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.addUrlButton.Name = "addUrlButton"; - this.addUrlButton.Size = new System.Drawing.Size(58, 23); + this.addUrlButton.Size = new System.Drawing.Size(77, 28); this.addUrlButton.TabIndex = 11; this.addUrlButton.Text = "Add"; this.addUrlButton.UseVisualStyleBackColor = true; @@ -154,10 +177,12 @@ private void InitializeComponent() // // cbRandomize // + this.cbRandomize.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.cbRandomize.AutoSize = true; - this.cbRandomize.Location = new System.Drawing.Point(15, 279); + this.cbRandomize.Location = new System.Drawing.Point(20, 343); + this.cbRandomize.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.cbRandomize.Name = "cbRandomize"; - this.cbRandomize.Size = new System.Drawing.Size(121, 17); + this.cbRandomize.Size = new System.Drawing.Size(160, 21); this.cbRandomize.TabIndex = 12; this.cbRandomize.Text = "Shuffle display order"; this.cbRandomize.UseVisualStyleBackColor = true; @@ -165,10 +190,10 @@ private void InitializeComponent() // PreferencesForm // this.AcceptButton = this.okButton; - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.cancelButton; - this.ClientSize = new System.Drawing.Size(277, 332); + this.ClientSize = new System.Drawing.Size(369, 409); this.Controls.Add(this.cbRandomize); this.Controls.Add(this.addUrlButton); this.Controls.Add(this.tbUrlToAdd); @@ -181,10 +206,11 @@ private void InitializeComponent() this.Controls.Add(this.label2); this.Controls.Add(this.llProjectLocationUrl); this.Controls.Add(this.label1); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "PreferencesForm"; + this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "Web Page Screensaver Settings"; this.Load += new System.EventHandler(this.PreferencesForm_Load);