コード例 #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();
        }
コード例 #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();
        }
コード例 #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();
        }