Fix problem with Item Selected. Fixes problem so that Item selected stays selected even if it is not active.
Also, makes DSOFramer properly select the related tab when it becomes active.
This commit is contained in:
@@ -173,7 +173,7 @@ namespace Volian.Controls.Library
|
||||
this.LinkClicked += new LinkClickedEventHandler(onLinkClicked);
|
||||
this.KeyPress += new KeyPressEventHandler(onKeyPress);
|
||||
this.KeyDown += new KeyEventHandler(onKeyDown);
|
||||
this.Leave += new EventHandler(DisplayRTB_Leave);
|
||||
//this.Leave += new EventHandler(DisplayRTB_Leave);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -201,7 +201,7 @@ namespace Volian.Controls.Library
|
||||
this.LinkClicked += new LinkClickedEventHandler(onLinkClicked);
|
||||
this.KeyPress += new KeyPressEventHandler(onKeyPress);
|
||||
this.KeyDown += new KeyEventHandler(onKeyDown);
|
||||
this.Leave += new EventHandler(DisplayRTB_Leave);
|
||||
//this.Leave += new EventHandler(DisplayRTB_Leave);
|
||||
}
|
||||
#endregion
|
||||
#region ApplicationSupport
|
||||
@@ -377,15 +377,19 @@ namespace Volian.Controls.Library
|
||||
_LinkClickedEventArgs = args;
|
||||
if (LinkModifyTran != null) LinkModifyTran(sender, args);
|
||||
}
|
||||
void DisplayRTB_Leave(object sender, EventArgs e)
|
||||
{
|
||||
// Save returns true if text was not changed or if change was saved successfully.
|
||||
if (ReadOnly) return;
|
||||
// if selecting another rtb, save. If selecting the info panel don't because
|
||||
// we're still on a valid item.??
|
||||
//void DisplayRTB_Leave(object sender, EventArgs e)
|
||||
//{
|
||||
// // Save returns true if text was not changed or if change was saved successfully.
|
||||
// if (ReadOnly) return;
|
||||
// // if selecting another rtb, save. If selecting the info panel don't because
|
||||
// // we're still on a valid item.??
|
||||
|
||||
// RHM?? why commented out. bool success = _origVlnText.Save((RichTextBox)this);
|
||||
// RHM?? why commented out.if (!success) Console.WriteLine("Failed to save text: {0}", this.Text);
|
||||
//}
|
||||
public void SaveText()
|
||||
{
|
||||
if (ReadOnly) return;
|
||||
bool success = _origVlnText.Save((RichTextBox)this);
|
||||
if (!success) Console.WriteLine("Failed to save text: {0}", this.Text);
|
||||
}
|
||||
private Point _savcurpos;
|
||||
private void onLinkClicked(object sender, System.Windows.Forms.LinkClickedEventArgs e)
|
||||
|
Reference in New Issue
Block a user