Fixed Invalid message for DSOPanel (MSWord)
Comment-out unused varaible Calculate Table Width and Location Fixed Arrow-Up and Arrow-Down to account for Tables Adjust Table location based upon the width of the Table
This commit is contained in:
@@ -136,7 +136,7 @@ namespace Volian.Controls.Library
|
||||
//this._MyDSOFramer.Leave += new EventHandler(_MyDSOFramer_Leave);
|
||||
//this._MyDSOFramer.OnActivationChange += new AxDSOFramer._DFramerCtlEvents_OnActivationChangeEventHandler(_MyDSOFramer_OnActivationChange);
|
||||
this.Enter += new EventHandler(DSOTabPanel_Enter);
|
||||
this.Leave += new EventHandler(DSOTabPanel_Leave);
|
||||
//this.Leave += new EventHandler(DSOTabPanel_Leave);
|
||||
//this.GotFocus += new EventHandler(DSOTabPanel_GotFocus);
|
||||
//this.LostFocus += new EventHandler(DSOTabPanel_LostFocus);
|
||||
Application.DoEvents();
|
||||
@@ -236,17 +236,16 @@ namespace Volian.Controls.Library
|
||||
#endregion
|
||||
#region Event Handlers
|
||||
/// <summary>
|
||||
/// When the user leaves a Word document, place the transparent frame on top with the words "InActive" in the upper right
|
||||
/// Display MyTransparentPanel over the DSOPanel so that the Word "Inactive" appears in the upper right hand corner.
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void DSOTabPanel_Leave(object sender, EventArgs e)
|
||||
public void InActive()
|
||||
{
|
||||
//vlnStackTrace.ShowStack("DSOTabPanel_Leave {0} DocID {1} Index {2} {3}", _In_DSOTabPanel_Enter, this._MyDocumentInfo.DocID, _MyDisplayTabControl.MyBar.SelectedDockTab, sender.GetType().FullName);
|
||||
_MyTransparentPanel.BringToFront();
|
||||
}
|
||||
/// <summary>
|
||||
/// Force this item to be selected when the transparent window is clicked.
|
||||
/// This will in-turn send the Transparent Panel to back and make the DSO Panel
|
||||
/// editable.
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
@@ -281,7 +280,7 @@ namespace Volian.Controls.Library
|
||||
try
|
||||
{
|
||||
this.Enter -= new EventHandler(DSOTabPanel_Enter);
|
||||
this.Leave -= new EventHandler(DSOTabPanel_Leave);
|
||||
// this.Leave -= new EventHandler(DSOTabPanel_Leave);
|
||||
// SaveDirty(); // SaveDirty happens in CloseDSO(bool)
|
||||
}
|
||||
catch (Exception ex)
|
||||
@@ -330,6 +329,7 @@ namespace Volian.Controls.Library
|
||||
_MyDisplayTabControl.OnItemSelectedChanged(this,new ItemSelectedChangedEventArgs(MyDisplayTabItem.MyItemInfo));
|
||||
_MyDSOFramer.Focus();
|
||||
_In_DSOTabPanel_Enter = false;
|
||||
_MyDisplayTabControl.SelectedDisplayTabItem = MyDisplayTabItem;
|
||||
}
|
||||
#endregion
|
||||
#region Public Methods
|
||||
@@ -459,5 +459,9 @@ namespace Volian.Controls.Library
|
||||
return null;
|
||||
}
|
||||
#endregion
|
||||
public override string ToString()
|
||||
{
|
||||
return string.Format("DSOTabPanel Document {0}", MyDocumentInfo.DocID);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user