Minor UI fixes

This commit is contained in:
niksedk 2023-08-17 08:59:51 +02:00
parent 20169ffd8c
commit 83eb4b9667
3 changed files with 22 additions and 23 deletions

View File

@ -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);

View File

@ -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;

View File

@ -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)