Tool forms restricted from entering document area

Avoid mixing tool and connection forms in the document area, as they behave and look different.
This commit is contained in:
Camilo Alvarez
2019-01-02 12:40:55 -05:00
parent efad824fe3
commit 2c3aace7a9
3 changed files with 3 additions and 5 deletions

View File

@@ -107,7 +107,6 @@ namespace mRemoteNG.Connection.Protocol
{
try
{
//if (ConnectionWindow.InTabDrag) return;
NativeMethods.SetForegroundWindow(_handle);
}
catch (Exception ex)

View File

@@ -182,10 +182,6 @@ namespace mRemoteNG.Connection.Protocol
{
try
{
/*if (ConnectionWindow.InTabDrag)
{
return;
}*/
NativeMethods.SetForegroundWindow(PuttyHandle);
}
catch (Exception ex)

View File

@@ -640,9 +640,12 @@ namespace mRemoteNG.UI.Forms
pnlDock.DockTopPortion = pnlDock.Height * 0.25;
pnlDock.DockBottomPortion = pnlDock.Height * 0.25;
Windows.TreeForm.DockAreas = DockAreas.DockBottom | DockAreas.DockLeft | DockAreas.DockRight | DockAreas.DockTop | DockAreas.Float;
Windows.TreeForm.Show(pnlDock, DockState.DockLeft);
Windows.ConfigForm.DockAreas = DockAreas.DockBottom | DockAreas.DockLeft | DockAreas.DockRight | DockAreas.DockTop | DockAreas.Float;
Windows.ConfigForm.Show(pnlDock);
Windows.ConfigForm.DockTo(Windows.TreeForm.Pane, DockStyle.Bottom, -1);
Windows.ErrorsForm.DockAreas = DockAreas.DockBottom | DockAreas.DockLeft | DockAreas.DockRight | DockAreas.DockTop | DockAreas.Float;
Windows.ErrorsForm.Show( pnlDock, DockState.DockBottomAutoHide );
Windows.ScreenshotForm.Hide();