This commit is contained in:
parent
d8071395fe
commit
99bd83fd14
@ -149,6 +149,7 @@ namespace Volian.Controls.Library
|
|||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
#region Properties and Variables
|
#region Properties and Variables
|
||||||
|
|
||||||
public bool IsRoTable
|
public bool IsRoTable
|
||||||
{
|
{
|
||||||
get { return (Parent is VlnFlexGrid && (Parent as VlnFlexGrid).IsRoTable); }
|
get { return (Parent is VlnFlexGrid && (Parent as VlnFlexGrid).IsRoTable); }
|
||||||
@ -376,6 +377,11 @@ namespace Volian.Controls.Library
|
|||||||
// was confusing the 'handle' of the rtf box.
|
// was confusing the 'handle' of the rtf box.
|
||||||
//Console.WriteLine("'font',{0}", Font);
|
//Console.WriteLine("'font',{0}", Font);
|
||||||
//if(Text == "")SelectionFont = Font; // Initialize SelectionFont
|
//if(Text == "")SelectionFont = Font; // Initialize SelectionFont
|
||||||
|
if (MyItemInfo != null)
|
||||||
|
{
|
||||||
|
if (MyItemInfo.IsStep) Font = MyFontFamily == null ? MyItemInfo.FormatStepData.Font.WindowsFont:new Font(MyFontFamily, MyItemInfo.FormatStepData.Font.WindowsFont.Size, MyItemInfo.FormatStepData.Font.WindowsFont.Style);
|
||||||
|
else Font = Font = MyFontFamily == null ? MyItemInfo.ActiveFormat.PlantFormat.FormatData.Font.WindowsFont : new Font(MyFontFamily, MyItemInfo.ActiveFormat.PlantFormat.FormatData.Font.WindowsFont.Size, MyItemInfo.ActiveFormat.PlantFormat.FormatData.Font.WindowsFont.Style);
|
||||||
|
}
|
||||||
RTBAPI.SetLineSpacing(this, RTBAPI.ParaSpacing.PFS_EXACT);
|
RTBAPI.SetLineSpacing(this, RTBAPI.ParaSpacing.PFS_EXACT);
|
||||||
ReadOnly = VwMode == E_ViewMode.View || ActiveMode == false;
|
ReadOnly = VwMode == E_ViewMode.View || ActiveMode == false;
|
||||||
AddRtfText(vlntxt.StartText);
|
AddRtfText(vlntxt.StartText);
|
||||||
@ -1220,7 +1226,7 @@ namespace Volian.Controls.Library
|
|||||||
// rtf.
|
// rtf.
|
||||||
FindAllLinks();
|
FindAllLinks();
|
||||||
}
|
}
|
||||||
void StepRTB_ContentsResized(object sender, ContentsResizedEventArgs e)
|
public void StepRTB_ContentsResized(object sender, ContentsResizedEventArgs e)
|
||||||
{
|
{
|
||||||
ContentsRectangle = e.NewRectangle;
|
ContentsRectangle = e.NewRectangle;
|
||||||
}
|
}
|
||||||
|
@ -431,7 +431,7 @@ namespace Volian.Controls.Library
|
|||||||
// insert process.
|
// insert process.
|
||||||
cm.MenuItems.Add("Insert Section Before", new EventHandler(mi_Click));
|
cm.MenuItems.Add("Insert Section Before", new EventHandler(mi_Click));
|
||||||
cm.MenuItems.Add("Insert Section After", new EventHandler(mi_Click));
|
cm.MenuItems.Add("Insert Section After", new EventHandler(mi_Click));
|
||||||
cm.MenuItems.Add("New Subsection", new EventHandler(mi_Click));
|
if (si.ActiveFormat.PlantFormat.FormatData.SectData.UseMetaSections)cm.MenuItems.Add("New Subsection", new EventHandler(mi_Click));
|
||||||
if (si.IsStepSection) cm.MenuItems.Add("New Step", new EventHandler(mi_Click));
|
if (si.IsStepSection) cm.MenuItems.Add("New Step", new EventHandler(mi_Click));
|
||||||
}
|
}
|
||||||
else if (tn.VEObject as StepInfo != null)
|
else if (tn.VEObject as StepInfo != null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user