This commit is contained in:
		@@ -149,6 +149,7 @@ namespace Volian.Controls.Library
 | 
			
		||||
		}
 | 
			
		||||
		#endregion
 | 
			
		||||
		#region Properties and Variables
 | 
			
		||||
		
 | 
			
		||||
		public bool 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.
 | 
			
		||||
			//Console.WriteLine("'font',{0}", Font);
 | 
			
		||||
			//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);
 | 
			
		||||
			ReadOnly = VwMode == E_ViewMode.View || ActiveMode == false;
 | 
			
		||||
			AddRtfText(vlntxt.StartText);
 | 
			
		||||
@@ -1220,7 +1226,7 @@ namespace Volian.Controls.Library
 | 
			
		||||
			// rtf.
 | 
			
		||||
			FindAllLinks();
 | 
			
		||||
		}
 | 
			
		||||
		void StepRTB_ContentsResized(object sender, ContentsResizedEventArgs e)
 | 
			
		||||
		public void StepRTB_ContentsResized(object sender, ContentsResizedEventArgs e)
 | 
			
		||||
		{
 | 
			
		||||
			ContentsRectangle = e.NewRectangle;
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
@@ -431,7 +431,7 @@ namespace Volian.Controls.Library
 | 
			
		||||
						// insert process.
 | 
			
		||||
						cm.MenuItems.Add("Insert Section Before", 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));
 | 
			
		||||
					}
 | 
			
		||||
					else if (tn.VEObject as StepInfo != null)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user