mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-26 05:02:36 +01:00
Minor fix for new up/down controls
This commit is contained in:
parent
a8478d435a
commit
c0c031c5d5
@ -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)
|
||||
{
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user