Still trying to make active video control tab header bold in main window

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@871 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2011-12-30 21:56:34 +00:00
parent f4173b5293
commit c9dfe1643c

View File

@ -1113,9 +1113,9 @@ namespace Nikse.SubtitleEdit.Forms
ShowSourceLineNumber();
// Video controls
tabPageTranslate.Text = _language.VideoControls.Translate;
tabPageCreate.Text = _language.VideoControls.Create;
tabPageAdjust.Text = _language.VideoControls.Adjust;
tabPageTranslate.Text = _language.VideoControls.Translate + " ";
tabPageCreate.Text = _language.VideoControls.Create + " ";
tabPageAdjust.Text = _language.VideoControls.Adjust + " ";
checkBoxSyncListViewWithVideoWhilePlaying.Text = _language.VideoControls.SelectCurrentElementWhilePlaying;
if (_videoFileName == null)
labelVideoInfo.Text = Configuration.Settings.Language.General.NoVideoLoaded;
@ -12221,11 +12221,11 @@ namespace Nikse.SubtitleEdit.Forms
{
tabFont = new Font(tc.Font, FontStyle.Bold);
e.Graphics.FillRectangle(new SolidBrush(SystemColors.Window), e.Bounds);
}
Rectangle tabBounds = tc.GetTabRect(e.Index);
var stringFlags = new StringFormat { Alignment = StringAlignment.Center, LineAlignment = StringAlignment.Center };
e.Graphics.DrawString(tc.TabPages[e.Index].Text, tabFont, textBrush, tabBounds, new StringFormat(stringFlags));
e.Graphics.DrawString(tc.TabPages[e.Index].Text.Trim(), tabFont, textBrush, tabBounds, new StringFormat(stringFlags));
//tc.DrawMode = TabDrawMode.Normal;
}
}