From 5a073d6b9c49861433ee39afe5ac5966fe7873d2 Mon Sep 17 00:00:00 2001 From: Ricardo Ribeiro Date: Wed, 2 Jan 2019 01:40:19 +0000 Subject: [PATCH] Improve aboutbox and firststart window --- YChan/AboutBox.Designer.cs | 89 +++++++++++++++++------------------- YChan/AboutBox.cs | 5 ++ YChan/AboutBox.resx | 5 +- YChan/FirstStart.Designer.cs | 13 +++--- YChan/FirstStart.resx | 9 ++++ 5 files changed, 65 insertions(+), 56 deletions(-) diff --git a/YChan/AboutBox.Designer.cs b/YChan/AboutBox.Designer.cs index bdfae13..df92ab4 100644 --- a/YChan/AboutBox.Designer.cs +++ b/YChan/AboutBox.Designer.cs @@ -28,39 +28,16 @@ protected override void Dispose(bool disposing) private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AboutBox)); - this.tableLayoutPanel = new System.Windows.Forms.TableLayoutPanel(); this.okButton = new System.Windows.Forms.Button(); - this.textBoxDescription = new System.Windows.Forms.TextBox(); this.labelCompanyName = new System.Windows.Forms.Label(); this.labelCopyright = new System.Windows.Forms.Label(); this.labelVersion = new System.Windows.Forms.Label(); this.labelProductName = new System.Windows.Forms.Label(); + this.tableLayoutPanel = new System.Windows.Forms.TableLayoutPanel(); + this.richTextBoxDescription = new System.Windows.Forms.RichTextBox(); this.tableLayoutPanel.SuspendLayout(); this.SuspendLayout(); // - // tableLayoutPanel - // - this.tableLayoutPanel.ColumnCount = 1; - this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 67F)); - this.tableLayoutPanel.Controls.Add(this.labelProductName, 0, 0); - this.tableLayoutPanel.Controls.Add(this.labelVersion, 0, 1); - this.tableLayoutPanel.Controls.Add(this.labelCopyright, 0, 2); - this.tableLayoutPanel.Controls.Add(this.labelCompanyName, 0, 3); - this.tableLayoutPanel.Controls.Add(this.textBoxDescription, 0, 4); - this.tableLayoutPanel.Controls.Add(this.okButton, 0, 5); - this.tableLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill; - this.tableLayoutPanel.Location = new System.Drawing.Point(9, 9); - this.tableLayoutPanel.Name = "tableLayoutPanel"; - this.tableLayoutPanel.RowCount = 6; - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F)); - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F)); - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F)); - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F)); - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F)); - this.tableLayoutPanel.Size = new System.Drawing.Size(417, 265); - this.tableLayoutPanel.TabIndex = 0; - // // okButton // this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); @@ -71,21 +48,6 @@ private void InitializeComponent() this.okButton.TabIndex = 24; this.okButton.Text = "&OK"; // - // textBoxDescription - // - this.textBoxDescription.Dock = System.Windows.Forms.DockStyle.Fill; - this.textBoxDescription.Location = new System.Drawing.Point(6, 107); - this.textBoxDescription.Margin = new System.Windows.Forms.Padding(6, 3, 3, 3); - this.textBoxDescription.Multiline = true; - this.textBoxDescription.Name = "textBoxDescription"; - this.textBoxDescription.ReadOnly = true; - this.textBoxDescription.ScrollBars = System.Windows.Forms.ScrollBars.Both; - this.textBoxDescription.Size = new System.Drawing.Size(408, 126); - this.textBoxDescription.TabIndex = 23; - this.textBoxDescription.TabStop = false; - this.textBoxDescription.Text = resources.GetString("textBoxDescription.Text"); - this.textBoxDescription.WordWrap = false; - // // labelCompanyName // this.labelCompanyName.Dock = System.Windows.Forms.DockStyle.Fill; @@ -134,6 +96,40 @@ private void InitializeComponent() this.labelProductName.Text = "Product Name"; this.labelProductName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // + // tableLayoutPanel + // + this.tableLayoutPanel.ColumnCount = 1; + this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 67F)); + this.tableLayoutPanel.Controls.Add(this.labelProductName, 0, 0); + this.tableLayoutPanel.Controls.Add(this.labelVersion, 0, 1); + this.tableLayoutPanel.Controls.Add(this.labelCopyright, 0, 2); + this.tableLayoutPanel.Controls.Add(this.labelCompanyName, 0, 3); + this.tableLayoutPanel.Controls.Add(this.okButton, 0, 5); + this.tableLayoutPanel.Controls.Add(this.richTextBoxDescription, 0, 4); + this.tableLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill; + this.tableLayoutPanel.Location = new System.Drawing.Point(9, 9); + this.tableLayoutPanel.Name = "tableLayoutPanel"; + this.tableLayoutPanel.RowCount = 6; + this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F)); + this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F)); + this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F)); + this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F)); + this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F)); + this.tableLayoutPanel.Size = new System.Drawing.Size(417, 265); + this.tableLayoutPanel.TabIndex = 0; + // + // richTextBoxDescription + // + this.richTextBoxDescription.Dock = System.Windows.Forms.DockStyle.Fill; + this.richTextBoxDescription.Location = new System.Drawing.Point(3, 107); + this.richTextBoxDescription.Name = "richTextBoxDescription"; + this.richTextBoxDescription.ReadOnly = true; + this.richTextBoxDescription.Size = new System.Drawing.Size(411, 126); + this.richTextBoxDescription.TabIndex = 25; + this.richTextBoxDescription.Text = resources.GetString("richTextBoxDescription.Text"); + this.richTextBoxDescription.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.richTextBoxDescription_LinkClicked); + // // AboutBox // this.AcceptButton = this.okButton; @@ -151,19 +147,18 @@ private void InitializeComponent() this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "AboutBox"; this.tableLayoutPanel.ResumeLayout(false); - this.tableLayoutPanel.PerformLayout(); this.ResumeLayout(false); } #endregion - private System.Windows.Forms.TableLayoutPanel tableLayoutPanel; - private System.Windows.Forms.Label labelProductName; - private System.Windows.Forms.Label labelVersion; - private System.Windows.Forms.Label labelCopyright; - private System.Windows.Forms.Label labelCompanyName; - private System.Windows.Forms.TextBox textBoxDescription; private System.Windows.Forms.Button okButton; + private System.Windows.Forms.Label labelCompanyName; + private System.Windows.Forms.Label labelCopyright; + private System.Windows.Forms.Label labelVersion; + private System.Windows.Forms.Label labelProductName; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel; + private System.Windows.Forms.RichTextBox richTextBoxDescription; } } diff --git a/YChan/AboutBox.cs b/YChan/AboutBox.cs index fcc0345..e6f03a7 100644 --- a/YChan/AboutBox.cs +++ b/YChan/AboutBox.cs @@ -96,5 +96,10 @@ public string AssemblyCompany } #endregion Assembly Attribute Accessors + + private void richTextBoxDescription_LinkClicked(object sender, LinkClickedEventArgs e) + { + System.Diagnostics.Process.Start(e.LinkText); + } } } \ No newline at end of file diff --git a/YChan/AboutBox.resx b/YChan/AboutBox.resx index f8cab0f..f53e931 100644 --- a/YChan/AboutBox.resx +++ b/YChan/AboutBox.resx @@ -117,7 +117,7 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + Original Project https://sourceforge.net/p/ychan/ Created by mirage (mirage@secure-mail.biz) Icon by karan000 (creator of XChan) @@ -125,6 +125,7 @@ Context Menu Icons by Oxygen Team Updated by Ricardo1991 and FugiMuffi at https://github.com/Ricardo1991/YChan -https://github.com/FugiMuffi/YChan +https://github.com/FugiMuffi/YChan + \ No newline at end of file diff --git a/YChan/FirstStart.Designer.cs b/YChan/FirstStart.Designer.cs index e096608..c0b6ca2 100644 --- a/YChan/FirstStart.Designer.cs +++ b/YChan/FirstStart.Designer.cs @@ -32,9 +32,9 @@ private void InitializeComponent() { // this.btnAClose.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.btnAClose.Location = new System.Drawing.Point(90, 248); + this.btnAClose.Location = new System.Drawing.Point(90, 168); this.btnAClose.Name = "btnAClose"; - this.btnAClose.Size = new System.Drawing.Size(60, 23); + this.btnAClose.Size = new System.Drawing.Size(179, 23); this.btnAClose.TabIndex = 2; this.btnAClose.Text = "Open Settings"; this.btnAClose.UseVisualStyleBackColor = true; @@ -50,11 +50,9 @@ private void InitializeComponent() { this.rtWelcome.Cursor = System.Windows.Forms.Cursors.Default; this.rtWelcome.Location = new System.Drawing.Point(12, 12); this.rtWelcome.Name = "rtWelcome"; - this.rtWelcome.Size = new System.Drawing.Size(216, 230); + this.rtWelcome.Size = new System.Drawing.Size(335, 150); this.rtWelcome.TabIndex = 3; - this.rtWelcome.Text = "Welcome to YChan! \n\nSince the original has been marked as abandoned on" + - " SourceForge, I decided to fork it and fix a bug that was annoying me.\n\nThat is " + - "all, have fun."; + this.rtWelcome.Text = resources.GetString("rtWelcome.Text"); this.rtWelcome.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.rtWelcome_LinkClicked); // // FirstStart @@ -62,10 +60,11 @@ private void InitializeComponent() { this.AcceptButton = this.btnAClose; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(240, 277); + this.ClientSize = new System.Drawing.Size(359, 197); this.Controls.Add(this.rtWelcome); this.Controls.Add(this.btnAClose); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.MinimumSize = new System.Drawing.Size(375, 236); this.Name = "FirstStart"; this.Text = "Welcome to Ychan"; this.ResumeLayout(false); diff --git a/YChan/FirstStart.resx b/YChan/FirstStart.resx index d385a6f..4a0a4bc 100644 --- a/YChan/FirstStart.resx +++ b/YChan/FirstStart.resx @@ -117,6 +117,15 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + Welcome to YChan! + +Since the original has been marked as abandoned on SourceForge, I decided to fork it and fix a bug that was annoying me. + +This fork repository is over at https://github.com/Ricardo1991/YChan but you probably already know that. + +That is all, have fun. +