Farley RNO Column size improvements

This commit is contained in:
2013-12-04 12:59:13 +00:00
parent eecf225006
commit d088933be0
2 changed files with 18 additions and 6 deletions

View File

@@ -71,8 +71,9 @@ namespace Volian.Controls.Library
get { return _MyStepRTB.Width; }
set
{
//Width = value + lblTab.Left + lblTab.Width;
Width = value + lblTab.Left + lblTab.Width + (this.Right - MyStepRTB.Right);
// This is wrong for single column (KBR) - RHM Debug:
//MyStepRTB.Width = value;
Width = value + lblTab.Left + lblTab.Width + (this.Width - MyStepRTB.Right);
}
}
public override int BorderWidth { get { return (_MyStepRTB.Width - _MyStepRTB.ClientRectangle.Width); } }
@@ -164,8 +165,11 @@ namespace Volian.Controls.Library
bool lastDigitSingle = Regex.IsMatch(tabString, "^.*[^0-9][0-9] *$");
lblTab.Width = ((lastDigitSingle ? 1 : 0) + tabString.Length) * MyStepPanel.DPI / cpi;
Invalidate();
_MyStepRTB.Left = lblTab.Left + lblTab.Width;
_MyStepRTB.Width = Width - _MyStepRTB.Left - RTBMargin - CheckOffMargin;
if (MyItemInfo.MyTab.Offset == 0)
{
_MyStepRTB.Left = lblTab.Left + lblTab.Width;
_MyStepRTB.Width = Width - _MyStepRTB.Left - RTBMargin - CheckOffMargin;
}
_TabFormat = value;
}
}