Waveform - focused selection is now 'selected-color', solid border

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@1613 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2013-02-08 18:23:49 +00:00
parent 79ed00571f
commit 92041d895e

View File

@ -508,6 +508,13 @@ namespace Nikse.SubtitleEdit.Controls
textBrush.Dispose();
textFont.Dispose();
}
if (Focused)
{
using (Pen p = new Pen(SelectedColor))
{
e.Graphics.DrawRectangle(p, new Rectangle(0, 0, Width - 1, Height - 1));
}
}
}
private void DrawBackground(Graphics graphics)
@ -524,14 +531,6 @@ namespace Nikse.SubtitleEdit.Controls
}
}
}
if (Focused)
{
using (Pen p = new Pen(Color.Gray))
{
p.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
graphics.DrawRectangle(p, new Rectangle(0, 0, Width - 1, Height - 1));
}
}
}
private void DrawTimeLine(double startPositionSeconds, PaintEventArgs e, int imageHeight)