C2025-031 - Added Tool Tip text for button on V button. Code fix for DotNetBar Visual UI rendering
This commit is contained in:
@@ -97,21 +97,6 @@ namespace Volian.Controls.Library
|
||||
set { if (Visible != value) Visible = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Expose text properties for height and widht to handle selecting RO Image Types.
|
||||
/// </summary>
|
||||
public string TbFSwd
|
||||
{
|
||||
get {return tbFSWd.Text;}
|
||||
set { tbFSWd.Text = value; tbFSWd.Refresh(); } // trBarFS.Value = Convert.ToInt32(value);
|
||||
}
|
||||
|
||||
public string TbFSht
|
||||
{
|
||||
get { return tbFSHt.Text; }
|
||||
set { tbFSHt.Text = value; tbFSHt.Refresh(); _origFigureSizeRatio = float.Parse(value) / float.Parse(tbFSWd.Text); }
|
||||
}
|
||||
|
||||
#endregion
|
||||
#region Constructor
|
||||
public DisplayTags()
|
||||
@@ -172,6 +157,18 @@ namespace Volian.Controls.Library
|
||||
tbFSWd.SelectionLength = 0;
|
||||
tbFSWd.SelectionStart = tbFSWd.TextLength; // position to the end of the Width text box
|
||||
}
|
||||
/// <summary>
|
||||
/// Update text properties for height and width for new RO Image Types.
|
||||
/// </summary>
|
||||
public void SetNewImageHeightAndWidth(int height, int width)
|
||||
{
|
||||
tbFSHt.Text = height.ToString();
|
||||
tbFSWd.Text = width.ToString();
|
||||
tbFSWd.Refresh();
|
||||
tbFSHt.Refresh();
|
||||
_origFigureSizeWidth = width;
|
||||
_origFigureSizeRatio = (float)height / (float)width;
|
||||
}
|
||||
public void ToggleChangeBar() // for use with shortcut keystoke <ALT><F2>
|
||||
{
|
||||
if (rbChgBarOff.Checked)
|
||||
|
@@ -340,9 +340,8 @@ namespace Volian.Controls.Library
|
||||
this.Height = MyPictureBox.Height + 10;
|
||||
if (_displayTags != null)
|
||||
{
|
||||
_displayTags._origFigureSizeWidth = wd;
|
||||
_displayTags.TbFSwd = wd.ToString();
|
||||
_displayTags.TbFSht = ht.ToString();
|
||||
// Set the Height and Width on the step properties page for the new image
|
||||
_displayTags.SetNewImageHeightAndWidth(ht, wd);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user