Farley RNO Column size improvements
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user