This commit is contained in:
Kathy Ruffing 2008-03-10 13:13:55 +00:00
parent 8213d30128
commit 9dc45d4c4d
3 changed files with 11 additions and 8 deletions

View File

@ -129,7 +129,7 @@ namespace Volian.Controls.Library
#region Constructors #region Constructors
/// <summary> /// <summary>
/// vlnRichTextBox constructor: /// vlnRichTextBox constructor:
/// Creates a RichTextBox with extra support for veproms editing/printing. /// Creates a MyDisplayRTB with extra support for veproms editing/printing.
/// Arguments are: /// Arguments are:
/// string txtbxname - name to give box (is this needed) /// string txtbxname - name to give box (is this needed)
/// ItemInfo itm - Item for which box is created /// ItemInfo itm - Item for which box is created
@ -606,11 +606,11 @@ namespace Volian.Controls.Library
else if (e.ClickedItem.ToString() == "TitleCase") else if (e.ClickedItem.ToString() == "TitleCase")
SetSelectedCase('T'); SetSelectedCase('T');
else if (e.ClickedItem.ToString() == "Insert RO") else if (e.ClickedItem.ToString() == "Insert RO")
InsertRO("kbr ro", "0000000000000"); MessageBox.Show("Not supported from context menu yet");
else if (e.ClickedItem.ToString() == "Insert Transition") else if (e.ClickedItem.ToString() == "Insert Transition")
InsertTran("kbr Tran", "5 3 5"); MessageBox.Show("Not supported from context menu yet");
else if (e.ClickedItem.ToString() == "Insert Symbol") else if (e.ClickedItem.ToString() == "Insert Symbol")
InsertSymbol(@"\u916?"); // hardcode for now, but should get value from dialog MessageBox.Show("Not supported from context menu yet");
else if (e.ClickedItem.ToString() == "Toggle View/Edit") else if (e.ClickedItem.ToString() == "Toggle View/Edit")
ToggleViewEdit(); ToggleViewEdit();
//else if (e.ClickedItem.ToString() == "Find text") findit(); //else if (e.ClickedItem.ToString() == "Find text") findit();
@ -620,7 +620,7 @@ namespace Volian.Controls.Library
MessageBox.Show(ex.Message); MessageBox.Show(ex.Message);
} }
} }
private void SetSelectedCase(char type) public void SetSelectedCase(char type)
{ {
switch (type) switch (type)
{ {

View File

@ -98,7 +98,7 @@ namespace Volian.Controls.Library
_MyItem = value; _MyItem = value;
if (value != null) if (value != null)
{ {
//// TIMING: vlnCSLARTB.TimeIt("rtbMyItem Start"); //// TIMING: DisplayItem.TimeIt("rtbMyItem Start");
//if (value.ItemID == 90) //if (value.ItemID == 90)
// if(_MyLog.IsInfoEnabled)_MyLog.InfoFormat(value.MyContent.Text); // if(_MyLog.IsInfoEnabled)_MyLog.InfoFormat(value.MyContent.Text);
string txt = _MyItem.MyContent.Text; string txt = _MyItem.MyContent.Text;
@ -128,7 +128,7 @@ namespace Volian.Controls.Library
{ {
AddRtf(txt); AddRtf(txt);
} }
//// TIMING: vlnCSLARTB.TimeIt("rtbMyItem End"); //// TIMING: DisplayItem.TimeIt("rtbMyItem End");
} }
} }
} }

View File

@ -53,7 +53,8 @@ namespace Volian.Controls.Library
_MyTabRibbon.Dock = System.Windows.Forms.DockStyle.Top; _MyTabRibbon.Dock = System.Windows.Forms.DockStyle.Top;
_MyTabRibbon.Location = new System.Drawing.Point(0, 0); _MyTabRibbon.Location = new System.Drawing.Point(0, 0);
_MyTabRibbon.Name = "displayTabRibbon1"; _MyTabRibbon.Name = "displayTabRibbon1";
_MyTabRibbon.RichTextBox = null; //_MyTabRibbon.MyDisplayRTB = null;
_MyTabRibbon.MyDisplayItem = null;
this.Controls.Add(_MyTabRibbon); this.Controls.Add(_MyTabRibbon);
} }
private void SetupDisplayTabPanel() private void SetupDisplayTabPanel()
@ -93,6 +94,8 @@ namespace Volian.Controls.Library
} }
void _MyPanel_ItemSelectedChanged(object sender, DisplayPanelEventArgs args) void _MyPanel_ItemSelectedChanged(object sender, DisplayPanelEventArgs args)
{ {
//_MyTabRibbon.MyDisplayRTB = args.MyDisplayItem.MyDisplayRTB;
_MyTabRibbon.MyDisplayItem = args.MyDisplayItem;
_MyTabControl.OnItemSelectedChanged(sender, args); _MyTabControl.OnItemSelectedChanged(sender, args);
} }
void _MyPanel_AttachmentClicked(object sender, DisplayPanelAttachmentEventArgs args) void _MyPanel_AttachmentClicked(object sender, DisplayPanelAttachmentEventArgs args)