Updates to display tags page for inital load of RO images and other images, updates to set some pre values for resizing and ratios.
This commit is contained in:
parent
38425a05f9
commit
9349396d9a
@ -103,13 +103,13 @@ namespace Volian.Controls.Library
|
|||||||
public string TbFSwd
|
public string TbFSwd
|
||||||
{
|
{
|
||||||
get {return tbFSWd.Text;}
|
get {return tbFSWd.Text;}
|
||||||
set { tbFSWd.Text = value; tbFSWd.Refresh(); }
|
set { tbFSWd.Text = value; tbFSWd.Refresh(); trBarFS.Value = Convert.ToInt32(value); }
|
||||||
}
|
}
|
||||||
|
|
||||||
public string TbFSht
|
public string TbFSht
|
||||||
{
|
{
|
||||||
get { return tbFSHt.Text; }
|
get { return tbFSHt.Text; }
|
||||||
set { tbFSHt.Text = value; tbFSHt.Refresh(); }
|
set { tbFSHt.Text = value; tbFSHt.Refresh(); _origFigureSizeRatio = float.Parse(value) / float.Parse(tbFSWd.Text); }
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
@ -912,7 +912,7 @@ namespace Volian.Controls.Library
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
private float _origFigureSizeRatio = 0; // keep original ratio & width in case of 'restore'
|
private float _origFigureSizeRatio = 0; // keep original ratio & width in case of 'restore'
|
||||||
private int _origFigureSizeWidth = 0;
|
public int _origFigureSizeWidth = 0;
|
||||||
// support user changing size using slider. This saves change back to ImageItem and sets
|
// support user changing size using slider. This saves change back to ImageItem and sets
|
||||||
// width/height text boxes to slider values.
|
// width/height text boxes to slider values.
|
||||||
private void trBarFS_Scroll(object sender, EventArgs e)
|
private void trBarFS_Scroll(object sender, EventArgs e)
|
||||||
|
@ -336,6 +336,7 @@ namespace Volian.Controls.Library
|
|||||||
this.Height = MyPictureBox.Height + 10;
|
this.Height = MyPictureBox.Height + 10;
|
||||||
if (_displayTags != null)
|
if (_displayTags != null)
|
||||||
{
|
{
|
||||||
|
_displayTags._origFigureSizeWidth = wd;
|
||||||
_displayTags.TbFSwd = wd.ToString();
|
_displayTags.TbFSwd = wd.ToString();
|
||||||
_displayTags.TbFSht = ht.ToString();
|
_displayTags.TbFSht = ht.ToString();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user