Exemplo n.º 1
0
        private void InternalConstruct(DockPanel dockPanel, DockPane pane, bool boundsSpecified, Rectangle bounds)
        {
            if (dockPanel == null)
            {
                throw(new ArgumentNullException(Strings.FloatWindow_Constructor_NullDockPanel));
            }

            m_nestedPanes = new NestedPaneCollection(this);

            #region Sara
            //Prior code: FormBorderStyle = FormBorderStyle.SizableToolWindow;
            FormBorderStyle = FormBorderStyle.Sizable;
            MinimizeBox     = false;
            #endregion Sara

            ShowInTaskbar = false;
            if (dockPanel.RightToLeft != RightToLeft)
            {
                RightToLeft = dockPanel.RightToLeft;
            }
            if (RightToLeftLayout != dockPanel.RightToLeftLayout)
            {
                RightToLeftLayout = dockPanel.RightToLeftLayout;
            }

            SuspendLayout();
            if (boundsSpecified)
            {
                Bounds        = bounds;
                StartPosition = FormStartPosition.Manual;
            }
            else
            {
                StartPosition = FormStartPosition.WindowsDefaultLocation;
                Size          = dockPanel.DefaultFloatWindowSize;
            }

            m_dockPanel = dockPanel;
            Owner       = DockPanel.FindForm();
            DockPanel.AddFloatWindow(this);
            if (pane != null)
            {
                pane.FloatWindow = this;
            }

            if (PatchController.EnableFontInheritanceFix == true)
            {
                Font = dockPanel.Font;
            }

            ResumeLayout();
        }
Exemplo n.º 2
0
        private void InternalConstruct(DockPanel dockPanel, DockPane pane, bool boundsSpecified, Rectangle bounds)
        {
            if (dockPanel == null)
            {
                throw(new ArgumentNullException(Strings.FloatWindow_Constructor_NullDockPanel));
            }

            m_nestedPanes = new NestedPaneCollection(this);

            FormBorderStyle = FormBorderStyle.SizableToolWindow;
            ShowInTaskbar   = false;
            //--------- BigMoshi.Start Edit ---------//
            // to fix the problem when loaded floating windows
            this.TopMost = true;
            //--------- BigMoshi.End Edit ---------//
            if (dockPanel.RightToLeft != RightToLeft)
            {
                RightToLeft = dockPanel.RightToLeft;
            }
            if (RightToLeftLayout != dockPanel.RightToLeftLayout)
            {
                RightToLeftLayout = dockPanel.RightToLeftLayout;
            }

            SuspendLayout();
            if (boundsSpecified)
            {
                Bounds        = bounds;
                StartPosition = FormStartPosition.Manual;
            }
            else
            {
                StartPosition = FormStartPosition.WindowsDefaultLocation;
                Size          = dockPanel.DefaultFloatWindowSize;
            }

            m_dockPanel = dockPanel;
            Owner       = DockPanel.FindForm();
            DockPanel.AddFloatWindow(this);
            if (pane != null)
            {
                pane.FloatWindow = this;
            }

            ResumeLayout();
        }
Exemplo n.º 3
0
        private void InternalConstruct(DockPanel dockPanel, DockPane pane, bool boundsSpecified, Rectangle bounds)
        {
            if (dockPanel == null)
            {
                throw(new ArgumentNullException(Strings.FloatWindow_Constructor_NullDockPanel));
            }

            m_nestedPanes = new NestedPaneCollection(this);

            FormBorderStyle = FormBorderStyle.SizableToolWindow;
            ShowInTaskbar   = false;
            if (dockPanel.RightToLeft != RightToLeft)
            {
                RightToLeft = dockPanel.RightToLeft;
            }
            if (RightToLeftLayout != dockPanel.RightToLeftLayout)
            {
                RightToLeftLayout = dockPanel.RightToLeftLayout;
            }

            SuspendLayout();
            if (boundsSpecified)
            {
                Bounds        = bounds;
                StartPosition = FormStartPosition.Manual;
            }
            else
            {
                StartPosition = FormStartPosition.WindowsDefaultLocation;
                Size          = dockPanel.DefaultFloatWindowSize;
            }

            m_dockPanel = dockPanel;
            Owner       = DockPanel.FindForm();
            DockPanel.AddFloatWindow(this);
            if (pane != null)
            {
                pane.FloatWindow = this;
            }
            this.Font = ProjectAllocationConstant.ProjectAllocationFont;

            ResumeLayout();
        }