mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
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:
@@ -107,7 +107,6 @@ namespace mRemoteNG.Connection.Protocol
|
||||
{
|
||||
try
|
||||
{
|
||||
//if (ConnectionWindow.InTabDrag) return;
|
||||
NativeMethods.SetForegroundWindow(_handle);
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
@@ -182,10 +182,6 @@ namespace mRemoteNG.Connection.Protocol
|
||||
{
|
||||
try
|
||||
{
|
||||
/*if (ConnectionWindow.InTabDrag)
|
||||
{
|
||||
return;
|
||||
}*/
|
||||
NativeMethods.SetForegroundWindow(PuttyHandle);
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user