This commit is contained in:
Kathy Ruffing 2008-01-28 15:27:13 +00:00
parent 7dba4440b7
commit 64eb45333a
3 changed files with 9 additions and 4 deletions

View File

@ -1124,11 +1124,12 @@ namespace VEPROMS
else else
{ {
itemAnnotationsBindingSource.DataSource = args.MyVlnCSLARTB.MyItem.ItemAnnotations; itemAnnotationsBindingSource.DataSource = args.MyVlnCSLARTB.MyItem.ItemAnnotations;
//_MyRTB = args.MyVlnCSLARTB.MyDisplayRTB;
DisplayTabPanel dtp = ((DisplayTabItem)tc.SelectedTab).MyTabPanel; DisplayTabPanel dtp = ((DisplayTabItem)tc.SelectedTab).MyTabPanel;
if (dtp == null) return; if (dtp == null) return;
displayTransition.CurItem = dtp.ItemSelected; displayTransition.CurItem = dtp.ItemSelected;
displayTransition.MyRTB = _MyRTB; displayTransition.MyRTB = dtp.MyPanel.DisplayItemSelected.MyDisplayRTB;
displayRO.CurItem = dtp.ItemSelected;
displayRO.MyRTB = dtp.MyPanel.DisplayItemSelected.MyDisplayRTB;
} }
} }
private void itemAnnotationsBindingSource_DataSourceChanged(object sender, EventArgs e) private void itemAnnotationsBindingSource_DataSourceChanged(object sender, EventArgs e)

View File

@ -67,6 +67,10 @@ namespace Volian.Controls.Library
ChangeBar = true; ChangeBar = true;
} }
} }
public DisplayRTB MyDisplayRTB
{
get { return _DisplayRTB; }
}
private void SetText() private void SetText()
{ {
if (_MyItem != null) if (_MyItem != null)

View File

@ -50,7 +50,7 @@ namespace Volian.Controls.Library
this._DisplayRTB.BackColor = System.Drawing.Color.Linen; this._DisplayRTB.BackColor = System.Drawing.Color.Linen;
this._DisplayRTB.BorderStyle = System.Windows.Forms.BorderStyle.None; this._DisplayRTB.BorderStyle = System.Windows.Forms.BorderStyle.None;
this._DisplayRTB.ContentsRectangle = new System.Drawing.Rectangle(0, 0, 0, 0); this._DisplayRTB.ContentsRectangle = new System.Drawing.Rectangle(0, 0, 0, 0);
this._DisplayRTB.EpMode = VEPROMS.CSLA.Library.E_EditPrintMode.EDIT; this._DisplayRTB.EpMode = VEPROMS.CSLA.Library.E_EditPrintMode.Edit;
this._DisplayRTB.Font = new System.Drawing.Font("Prestige Elite Tall", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(2))); this._DisplayRTB.Font = new System.Drawing.Font("Prestige Elite Tall", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(2)));
this._DisplayRTB.Location = new System.Drawing.Point(80, 0); this._DisplayRTB.Location = new System.Drawing.Point(80, 0);
this._DisplayRTB.MyClassName = "RichEdit20W"; this._DisplayRTB.MyClassName = "RichEdit20W";
@ -60,7 +60,7 @@ namespace Volian.Controls.Library
this._DisplayRTB.Size = new System.Drawing.Size(234, 20); this._DisplayRTB.Size = new System.Drawing.Size(234, 20);
this._DisplayRTB.TabIndex = 2; this._DisplayRTB.TabIndex = 2;
this._DisplayRTB.Text = ""; this._DisplayRTB.Text = "";
this._DisplayRTB.VwMode = VEPROMS.CSLA.Library.E_ViewMode.EDIT; this._DisplayRTB.VwMode = VEPROMS.CSLA.Library.E_ViewMode.Edit;
this._DisplayRTB.Enter += new System.EventHandler(this.veRichTextBoxText_Enter); this._DisplayRTB.Enter += new System.EventHandler(this.veRichTextBoxText_Enter);
this._DisplayRTB.LinkGoTo += new Volian.Controls.Library.DisplayRTBLinkEvent(this._DisplayRTB_LinkGoTo); this._DisplayRTB.LinkGoTo += new Volian.Controls.Library.DisplayRTBLinkEvent(this._DisplayRTB_LinkGoTo);
this._DisplayRTB.Leave += new System.EventHandler(this.veRichTextBoxText_Leave); this._DisplayRTB.Leave += new System.EventHandler(this.veRichTextBoxText_Leave);