Fixed code to initialize MS Word sections if Document Style does not specify font.

Added code to handle refreshing the Edit Screen when a section is moved.
Added code to refresh the Edit Screen when a section is moved.
This commit is contained in:
Rich
2013-03-12 15:01:46 +00:00
parent 5588328899
commit e063da6198
3 changed files with 12 additions and 5 deletions

View File

@@ -1946,7 +1946,7 @@ namespace Volian.Controls.Library
{
DragDropEffects ee = e.Effect;
if ((e.KeyState & 8) == 8)
ee = DragDropEffects.Copy; // Copy it
ee = DragDropEffects.None; // Don't allow copy this way - Copy it
else
ee = DragDropEffects.Move; // Move it
if (IsChild(dragNode, dl.DropNode)) // Don't copy or move to a child node
@@ -2081,9 +2081,11 @@ namespace Volian.Controls.Library
return;
}
pdropi = ((VETreeNode)_LastDropLocation.DropNode).VEObject as ProcedureInfo;
if (pdropi != null && sdragi.MyParent.ItemID == pdropi.ItemID)
if (pdropi != null && ((ItemInfo)(sdragi.ActiveParent)).ItemID == pdropi.ItemID)
{
sdragi.MoveSection(pdropi, myIndex);
sdragi.Moving = true;
OnNodeSelect(dragNode, new vlnTreeEventArgs(dragNode));
return;
}
}