There were a few issues with being able to select an item with the mouse. Primarily, there were methods tied to the enter event and the mouse-click event.
This commit is contained in:
@@ -435,7 +435,7 @@ namespace Volian.Controls.Library
|
||||
//_DisplayRTB.Leave += new EventHandler(_DisplayRTB_Leave);
|
||||
//_DisplayRTB.GotFocus += new EventHandler(_DisplayRTB_GotFocus);
|
||||
//_DisplayRTB.LostFocus += new EventHandler(_DisplayRTB_LostFocus);
|
||||
_DisplayRTB.MouseClick += new MouseEventHandler(_DisplayRTB_MouseClick);
|
||||
//_DisplayRTB.MouseClick += new MouseEventHandler(_DisplayRTB_MouseClick);
|
||||
if (item != null)
|
||||
{
|
||||
_Type = (int)item.MyContent.Type;
|
||||
@@ -532,10 +532,10 @@ namespace Volian.Controls.Library
|
||||
_Loading = false;
|
||||
//// TIMING: vlnCSLARTB.TimeIt("CSLARTB Controls Add");
|
||||
}
|
||||
void _DisplayRTB_MouseClick(object sender, MouseEventArgs e)
|
||||
{
|
||||
_DisplayRTB.Select();
|
||||
}
|
||||
//void _DisplayRTB_MouseClick(object sender, MouseEventArgs e)
|
||||
//{
|
||||
// _DisplayRTB.Select();
|
||||
//}
|
||||
//void _DisplayRTB_Enter(object sender, EventArgs e)
|
||||
//{
|
||||
// _Panel._ItemSelected = _MyItem;
|
||||
@@ -950,13 +950,11 @@ namespace Volian.Controls.Library
|
||||
private void _DisplayRTB_Enter(object sender, EventArgs e)
|
||||
{
|
||||
_Panel.DisplayRTB = _DisplayRTB;
|
||||
_Panel.ItemSelected = _MyItem;
|
||||
//_Panel.ItemSelected = _MyItem;
|
||||
}
|
||||
//private void veRichTextBoxText_Leave(object sender, EventArgs e)
|
||||
//{
|
||||
|
||||
//}
|
||||
|
||||
private void _DisplayRTB_LinkModifyTran(object sender, LinkClickedEventArgs e)
|
||||
{
|
||||
_Panel.OnLinkModifyTran(sender, new DisplayLinkEventArgs(this, e));
|
||||
|
Reference in New Issue
Block a user