ReadOnly Step Property for Backgrounds
Support ReadOnly step property for rtb size Support ReadOnly for rtb Pagination for Background documents, i.e. HLS/Caution/Note have pagebreaks Pagination for Backgrounds; Pagelist items for Backgrounds; tabs & offset for backgrounds & minor general Callaway PageList items for Background documents (HLRNO & HLSTAB) and CURDATE & CURTIME (for fnpnmp)
This commit is contained in:
@@ -2084,7 +2084,18 @@ namespace Volian.Controls.Library
|
||||
ItemLocation = new Point(_MyParentEditItem.ItemLocation.X, _MyParentEditItem.Bottom);
|
||||
else
|
||||
ItemLocation = new Point(_MyParentEditItem.ContentLeft, _MyParentEditItem.Bottom);
|
||||
ItemWidth = _MyParentEditItem.ContentWidth;
|
||||
if (MyItemInfo.FormatStepData.ReadOnly)
|
||||
{
|
||||
Graphics g = CreateGraphics();
|
||||
SizeF sz = g.MeasureString(MyItemInfo.MyContent.Text, MyItemInfo.FormatStepData.Font.WindowsFont);
|
||||
ItemWidth = (int)sz.Width;
|
||||
}
|
||||
else if (MyParentEditItem != null && MyParentEditItem.MyItemInfo.FormatStepData.ReadOnly)
|
||||
{
|
||||
ItemWidth = MyStepPanel.ToDisplay(MyStepSectionLayoutData.ColT) + MyStepPanel.ToDisplay(MyStepSectionLayoutData.WidSTableEdit, 0);
|
||||
}
|
||||
else
|
||||
ItemWidth = _MyParentEditItem.ContentWidth;
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -2196,7 +2207,17 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
else
|
||||
{
|
||||
Width = MyPreviousEditItem.Width;
|
||||
if (MyItemInfo.FormatStepData != null && MyItemInfo.FormatStepData.ReadOnly)
|
||||
{
|
||||
Graphics g = CreateGraphics();
|
||||
SizeF sz = g.MeasureString(MyItemInfo.MyContent.Text, MyItemInfo.FormatStepData.Font.WindowsFont);
|
||||
ItemWidth = (int)sz.Width;
|
||||
}
|
||||
else if (MyPreviousEditItem != null && MyPreviousEditItem.MyItemInfo.FormatStepData != null && MyPreviousEditItem.MyItemInfo.FormatStepData.ReadOnly)
|
||||
ItemWidth = MyStepPanel.ToDisplay(MyStepSectionLayoutData.ColT) + MyStepPanel.ToDisplay(MyStepSectionLayoutData.WidSTableEdit, 0);
|
||||
else
|
||||
Width = MyPreviousEditItem.Width;
|
||||
|
||||
if (TopMostEditItem == this)
|
||||
{
|
||||
if (MyItemInfo.ActiveFormat.MyStepSectionLayoutData.Dev_Format && (MyItemInfo.IsNote || MyItemInfo.IsCaution))
|
||||
|
@@ -444,7 +444,8 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
}
|
||||
RTBAPI.SetLineSpacing(this, RTBAPI.ParaSpacing.PFS_EXACT);
|
||||
ReadOnly = VwMode == E_ViewMode.View || ActiveMode == false;
|
||||
bool readOnlyStep = MyItemInfo == null || MyItemInfo.FormatStepData == null ? false : MyItemInfo.FormatStepData.ReadOnly;
|
||||
ReadOnly = readOnlyStep || VwMode == E_ViewMode.View || ActiveMode == false;
|
||||
AddRtfText(vlntxt.StartText);
|
||||
//AddRtfStyles();
|
||||
// set readonly based on initial modes, however, these may change if
|
||||
|
Reference in New Issue
Block a user