This commit is contained in:
Kathy Ruffing 2008-03-13 12:56:39 +00:00
parent 859851d499
commit 2393798276
2 changed files with 8 additions and 6 deletions

View File

@ -455,13 +455,15 @@ namespace Volian.Controls.Library
// add the character with its font depending on the char.... // add the character with its font depending on the char....
if (!IsControlChar) if (!IsControlChar)
{ {
if (e.KeyChar == '\b') return; // return on backspace. if (e.KeyChar == '\b') return; // return on backspace otherwise, get a block char
// check for symbol - how?? if (e.KeyChar == '-')
AddRtf(e.KeyChar.ToString()); AddSymbol(@"\u8209?");
else
AddRtf(e.KeyChar.ToString());
e.Handled = true; // flag that it's been handled, otherwise, will get 2 chars.
} }
IsControlChar = false; IsControlChar = false;
} }
e.Handled = true; // flag that it's been handled, otherwise, will get 2 chars.
} }
#endregion #endregion
#endregion #endregion

View File

@ -49,7 +49,7 @@ namespace Volian.Controls.Library
InitializeComponent(); InitializeComponent();
this.Click += new EventHandler(DisplayTabItem_Click); this.Click += new EventHandler(DisplayTabItem_Click);
if (myItem.MyContent.MyEntry == null) if (myItem.MyContent.MyEntry == null)
SetupDisplayPanel(); SetupDisplayTabPanel();
else else
SetupDSOPanel(); SetupDSOPanel();
Name = string.Format("DisplayTabItem {0}", myItem.ItemID); Name = string.Format("DisplayTabItem {0}", myItem.ItemID);
@ -63,7 +63,7 @@ namespace Volian.Controls.Library
if(myTabPanel == null) return; if(myTabPanel == null) return;
_MyTabControl.OnItemSelectedChanged(this,new DisplayPanelEventArgs(MyTabPanel.SelectedItem,null)); _MyTabControl.OnItemSelectedChanged(this,new DisplayPanelEventArgs(MyTabPanel.SelectedItem,null));
} }
private void SetupDisplayPanel() private void SetupDisplayTabPanel()
{ {
((System.ComponentModel.ISupportInitialize)(_MyTabControl.MyBar)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(_MyTabControl.MyBar)).BeginInit();
_MyTabControl.MyBar.SuspendLayout(); _MyTabControl.MyBar.SuspendLayout();