Minor fix for new up/down controls

This commit is contained in:
niksedk 2023-07-16 16:39:02 +02:00
parent a8478d435a
commit c0c031c5d5
2 changed files with 4 additions and 3 deletions

View File

@ -234,6 +234,7 @@ namespace Nikse.SubtitleEdit.Controls
_dirty = true;
}
};
_maskedTextBox.BorderStyle = BorderStyle.None;
Controls.Add(_maskedTextBox);
BackColor = new TextBox().BackColor;
@ -642,13 +643,12 @@ namespace Nikse.SubtitleEdit.Controls
e.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
_maskedTextBox.BackColor = BackColor;
_maskedTextBox.BorderStyle = BorderStyle.None;
_maskedTextBox.ForeColor = ButtonForeColor;
_maskedTextBox.Top = 2;
_maskedTextBox.Left = RightToLeft == RightToLeft.Yes ? ButtonsWidth : 3;
_maskedTextBox.Height = Height - 4;
_maskedTextBox.Width = Width - ButtonsWidth - 3;
_maskedTextBox.Invalidate();
// SetText();
if (!Enabled)
{

View File

@ -222,6 +222,7 @@ namespace Nikse.SubtitleEdit.Controls
_textBox.LostFocus += (sender, args) => Invalidate();
_textBox.GotFocus += (sender, args) => Invalidate();
_textBox.TextChanged += _textBox_TextChanged;
_textBox.BorderStyle = BorderStyle.None;
Controls.Add(_textBox);
BackColor = new TextBox().BackColor;
@ -462,7 +463,7 @@ namespace Nikse.SubtitleEdit.Controls
e.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
_textBox.BackColor = BackColor;
_textBox.BorderStyle = BorderStyle.None;
_textBox.ForeColor = ButtonForeColor;
_textBox.Top = 2;
_textBox.Left = RightToLeft == RightToLeft.Yes ? ButtonsWidth : 3;
_textBox.Height = Height - 4;