Added Change Image Size to context menu

This commit is contained in:
John Jenko 2017-01-19 18:05:52 +00:00
parent 3e5741ef75
commit 993a22eb5a
2 changed files with 14 additions and 0 deletions

View File

@ -2925,6 +2925,13 @@ namespace VEPROMS
infoTabs.SelectedTab = infotabTags;
displayTags.HighlightChangeStep();
}
else if (args.PanelTabName == "Change Image Size")
{
// B2016-237 added context menu item to change image size
infoPanel.Expanded = true;
infoTabs.SelectedTab = infotabTags;
displayTags.FocusOnImageSize();
}
else if (args.PanelTabName == "FndRpl")
{
dlgFindReplace.InApproved = (_SelectedDVI != null && _SelectedDVI.VersionType == 127);

View File

@ -137,6 +137,13 @@ namespace Volian.Controls.Library
// left here in case we change our mind.
//groupPanelChgStepType.Style.BackColor = Color.PaleVioletRed;
}
public void FocusOnImageSize()
{
// B2016-237 added context menu item to change image size
tbFSWd.Focus();
tbFSWd.SelectionLength = 0;
tbFSWd.SelectionStart = tbFSWd.TextLength; // position to the end of the Width text box
}
public void ToggleChangeBar() // for use with shortcut keystoke <ALT><F2>
{
if (rbChgBarOff.Checked)