Update for displaying when a figure is selected or added (as opposed to a step or some other type of option)

This commit is contained in:
Kevin Laskey 2024-06-04 11:55:17 -04:00
parent 0d6fd6950c
commit 241785846e

View File

@ -404,8 +404,11 @@ namespace Volian.Controls.Library
} }
else else
{ {
//No Current image, but still show groupPanelFigSize, will adjust when file is selected. if (MyEditItem.MyItemInfo.IsFigure)
groupPanelFigSize.Visible = true; //No Current image, but still show groupPanelFigSize, will adjust when file is selected.
groupPanelFigSize.Visible = true;
else
groupPanelFigSize.Visible = false;
} }
// change bar setting depends on whether step has changed (dts) as compared to date/time off the // change bar setting depends on whether step has changed (dts) as compared to date/time off the
@ -872,11 +875,14 @@ namespace Volian.Controls.Library
// restore the orignal image size // restore the orignal image size
private void btnFSrestore_Click(object sender, EventArgs e) private void btnFSrestore_Click(object sender, EventArgs e)
{ {
tbFSWd.Text = _origFigureSizeWidth.ToString(); if (_origFigureSizeWidth != 0)
int ht = (int)(_origFigureSizeRatio * _origFigureSizeWidth); {
tbFSHt.Text = ht.ToString(); tbFSWd.Text = _origFigureSizeWidth.ToString();
(MyEditItem as ImageItem).SizeImage(_origFigureSizeWidth, ht); int ht = (int)(_origFigureSizeRatio * _origFigureSizeWidth);
trBarFS.Value = _origFigureSizeWidth; tbFSHt.Text = ht.ToString();
(MyEditItem as ImageItem).SizeImage(_origFigureSizeWidth, ht);
trBarFS.Value = _origFigureSizeWidth;
}
} }
// user entered width in text box, this event gets called on leave of text box. // user entered width in text box, this event gets called on leave of text box.
private void tbFSWd_Leave(object sender, EventArgs e) private void tbFSWd_Leave(object sender, EventArgs e)