diff --git a/src/ui/Forms/Assa/ApplyCustomStyles.Designer.cs b/src/ui/Forms/Assa/ApplyCustomStyles.Designer.cs index 4c8ef8b93..7a6957c3f 100644 --- a/src/ui/Forms/Assa/ApplyCustomStyles.Designer.cs +++ b/src/ui/Forms/Assa/ApplyCustomStyles.Designer.cs @@ -46,8 +46,8 @@ namespace Nikse.SubtitleEdit.Forms.Assa this.buttonHistory = new System.Windows.Forms.Button(); this.buttonTogglePreview = new System.Windows.Forms.Button(); this.timer1 = new System.Windows.Forms.Timer(this.components); - this.seTextBox1 = new Nikse.SubtitleEdit.Controls.NikseTextBox(); this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); + this.seTextBox1 = new Nikse.SubtitleEdit.Controls.NikseTextBox(); this.groupBoxApplyTo.SuspendLayout(); this.groupBoxPreview.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBoxPreview)).BeginInit(); @@ -55,7 +55,8 @@ namespace Nikse.SubtitleEdit.Forms.Assa // // groupBoxApplyTo // - this.groupBoxApplyTo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.groupBoxApplyTo.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Right))); this.groupBoxApplyTo.Controls.Add(this.labelAdvancedSelection); this.groupBoxApplyTo.Controls.Add(this.buttonAdvancedSelection); this.groupBoxApplyTo.Controls.Add(this.radioButtonAdvancedSelection); @@ -205,31 +206,27 @@ namespace Nikse.SubtitleEdit.Forms.Assa // this.timer1.Tick += new System.EventHandler(this.timer1_Tick); // - // seTextBox1 - // - this.seTextBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.seTextBox1.BackColor = System.Drawing.SystemColors.WindowFrame; - this.seTextBox1.ContextMenuStrip = this.contextMenuStrip1; - this.seTextBox1.HideSelection = true; - this.seTextBox1.Location = new System.Drawing.Point(12, 40); - this.seTextBox1.Multiline = true; - this.seTextBox1.Name = "seTextBox1"; - this.seTextBox1.Padding = new System.Windows.Forms.Padding(1); - this.seTextBox1.ScrollBars = ScrollBars.None; - this.seTextBox1.SelectedText = ""; - this.seTextBox1.SelectionLength = 0; - this.seTextBox1.SelectionStart = 0; - this.seTextBox1.Size = new System.Drawing.Size(522, 156); - this.seTextBox1.TabIndex = 0; - this.seTextBox1.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold); - // // contextMenuStrip1 // this.contextMenuStrip1.Name = "contextMenuStrip1"; this.contextMenuStrip1.Size = new System.Drawing.Size(61, 4); this.contextMenuStrip1.Opening += new System.ComponentModel.CancelEventHandler(this.contextMenuStrip1_Opening); // + // seTextBox1 + // + this.seTextBox1.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.seTextBox1.BackColor = System.Drawing.SystemColors.WindowFrame; + this.seTextBox1.ContextMenuStrip = this.contextMenuStrip1; + this.seTextBox1.FocusedColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(120)))), ((int)(((byte)(215))))); + this.seTextBox1.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold); + this.seTextBox1.Location = new System.Drawing.Point(12, 40); + this.seTextBox1.Multiline = true; + this.seTextBox1.Name = "seTextBox1"; + this.seTextBox1.Size = new System.Drawing.Size(522, 156); + this.seTextBox1.TabIndex = 0; + // // ApplyCustomStyles // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); diff --git a/src/ui/Forms/Assa/AssaProgressBar.Designer.cs b/src/ui/Forms/Assa/AssaProgressBar.Designer.cs index 36ce2d4a1..aa4426d28 100644 --- a/src/ui/Forms/Assa/AssaProgressBar.Designer.cs +++ b/src/ui/Forms/Assa/AssaProgressBar.Designer.cs @@ -60,7 +60,7 @@ namespace Nikse.SubtitleEdit.Forms.Assa this.labelTextHorizontalAlignment = new System.Windows.Forms.Label(); this.labelYAdjust = new System.Windows.Forms.Label(); this.numericUpDownYAdjust = new Nikse.SubtitleEdit.Controls.NikseUpDown(); - this.textBoxChapterText = new System.Windows.Forms.TextBox(); + this.textBoxChapterText = new Nikse.SubtitleEdit.Controls.NikseTextBox(); this.labelText = new Nikse.SubtitleEdit.Controls.NikseLabel(); this.timeUpDownStartTime = new Nikse.SubtitleEdit.Controls.NikseTimeUpDown(); this.labelStartTime = new Nikse.SubtitleEdit.Controls.NikseLabel(); @@ -693,7 +693,7 @@ namespace Nikse.SubtitleEdit.Forms.Assa private System.Windows.Forms.Button buttonTextColor; private Controls.NikseTimeUpDown timeUpDownStartTime; private Nikse.SubtitleEdit.Controls.NikseLabel labelStartTime; - private System.Windows.Forms.TextBox textBoxChapterText; + private Nikse.SubtitleEdit.Controls.NikseTextBox textBoxChapterText; private Nikse.SubtitleEdit.Controls.NikseLabel labelText; private System.Windows.Forms.Label labelYAdjust; private Nikse.SubtitleEdit.Controls.NikseUpDown numericUpDownYAdjust; diff --git a/src/ui/Forms/Assa/AssaProgressBar.cs b/src/ui/Forms/Assa/AssaProgressBar.cs index ad8fee03b..a5381d017 100644 --- a/src/ui/Forms/Assa/AssaProgressBar.cs +++ b/src/ui/Forms/Assa/AssaProgressBar.cs @@ -139,6 +139,7 @@ namespace Nikse.SubtitleEdit.Forms.Assa buttonTakePosFromVideo.Left = timeUpDownStartTime.Left + timeUpDownStartTime.Width + 10; LoadExistingProgressBarSettings(); + listViewChapters.AutoSizeLastColumn(); _timerRender = new Timer { Interval = 100 }; _timerRender.Tick += TimerRenderTick; @@ -773,6 +774,7 @@ Dialogue: -255,0:00:00.00,0:43:00.00,SE-progress-bar-bg,,0,0,0,,[PB_DRAWING]"; } listViewChapters.EndUpdate(); + listViewChapters.AutoSizeLastColumn(); } private void AssaProgressBar_KeyDown(object sender, KeyEventArgs e)