public SplitViewParentControl()
        {
            OnCreate();

            InitializeComponent();
            InitializeComponentInternal();
            splitView.Resizing += SplitView_Resizing;
            splitView.HideLeft += SplitView_HideLeft;
            splitView.HideTop += SplitView_HideTop;

            LowerRight = GetNewView();
            LowerRight.AllowDrop = true;
            LowerRight.BorderColor = Color.White;
            LowerRight.BorderStyle = BorderStyle.None;
            LowerRight.Location = new Point(0, 0);
            LowerRight.Size = new Size(100, 100);

            Views = new List<SplitViewChildControl>();
            LowerRight.TopThumb.MouseDown += TopThumb_MouseDown;
            LowerRight.LeftThumb.MouseDown += LeftThumb_MouseDown;
            Views.Add(LowerRight);
            LowerRight.TopThumbVisible = true;
            LowerRight.LeftThumbVisible = true;
            splitView.Controls.Add(LowerRight);
            splitView.LowerRight = LowerRight;

            SplitView = true;
            ScrollBars = ScrollBars.Both;
            BorderStyle = BorderStyle.None;
            ChildBorderColor = SystemColors.ControlDark;
            ChildBorderStyle = BorderStyle.FixedSingle;
            BackColor = SystemColors.Window;
            Size = new Size(100, 100);
            _ActiveView = LowerRight;
        }
Beispiel #2
0
 private void InitializeComponentInternal()
 {
     this.splitView = new SplitViewControl();
     this.SuspendLayout();
     //
     // splitView
     //
     this.splitView.BackColor  = Color.Empty;
     this.splitView.Dock       = DockStyle.Fill;
     this.splitView.LowerLeft  = null;
     this.splitView.LowerRight = null;
     this.splitView.Name       = "splitView";
     this.splitView.Size       = new Size(248, 216);
     this.splitView.SplitviewH = -4;
     this.splitView.SplitviewV = -4;
     this.splitView.TabIndex   = 0;
     this.splitView.Text       = "splitView";
     this.splitView.UpperLeft  = null;
     this.splitView.UpperRight = null;
     //
     // SplitViewParentControl
     //
     this.Controls.AddRange(new Control[]
     {
         this.splitView
     });
     this.Name = "SplitViewParentControl";
     this.Size = new Size(248, 216);
     this.ResumeLayout(false);
 }
Beispiel #3
0
        protected virtual void ActivateSplits()
        {
            if (this.UpperLeft == null)
            {
                this.UpperLeft  = GetNewView();
                this.UpperRight = GetNewView();
                this.LowerLeft  = GetNewView();

                this.splitView.Controls.AddRange(new Control[]
                {
                    this.UpperLeft,
                    this.LowerLeft,
                    this.UpperRight
                });

                this.splitView.UpperRight = this.LowerLeft;
                this.splitView.UpperLeft  = this.UpperLeft;
                this.splitView.LowerLeft  = this.UpperRight;

                CreateViews();
            }
        }
Beispiel #4
0
        protected virtual void ActivateSplits()
        {
            if (UpperLeft == null)
            {
                UpperLeft  = GetNewView();
                UpperRight = GetNewView();
                LowerLeft  = GetNewView();

                splitView.Controls.AddRange(new Control[]
                {
                    UpperLeft,
                    LowerLeft,
                    UpperRight
                });

                splitView.UpperRight = LowerLeft;
                splitView.UpperLeft  = UpperLeft;
                splitView.LowerLeft  = UpperRight;

                CreateViews();
            }
        }
Beispiel #5
0
        public SplitViewParentControl() : base()
        {
            this.OnCreate();

            this.InitializeComponent();
            this.InitializeComponentInternal();
            this.splitView.Resizing += new EventHandler(this.SplitView_Resizing);
            this.splitView.HideLeft += new EventHandler(this.SplitView_HideLeft);
            this.splitView.HideTop  += new EventHandler(this.SplitView_HideTop);


            this.LowerRight             = GetNewView();
            this.LowerRight.AllowDrop   = true;
            this.LowerRight.BorderColor = Color.White;
            this.LowerRight.BorderStyle = BorderStyle.None;
            this.LowerRight.Location    = new Point(0, 0);
            this.LowerRight.Size        = new Size(100, 100);

            this.Views = new ArrayList();
            LowerRight.TopThumb.MouseDown  += new MouseEventHandler(TopThumb_MouseDown);
            LowerRight.LeftThumb.MouseDown += new MouseEventHandler(LeftThumb_MouseDown);
            Views.Add(LowerRight);
            LowerRight.TopThumbVisible  = true;
            LowerRight.LeftThumbVisible = true;
            this.splitView.Controls.Add(this.LowerRight);
            this.splitView.LowerRight = this.LowerRight;

            this.SplitView        = true;
            this.ScrollBars       = ScrollBars.Both;
            this.BorderStyle      = BorderStyle.None;
            this.ChildBorderColor = SystemColors.ControlDark;
            this.ChildBorderStyle = BorderStyle.FixedSingle;
            this.BackColor        = SystemColors.Window;
            this.Size             = new Size(100, 100);
            _ActiveView           = LowerRight;
        }
Beispiel #6
0
        public SplitViewParentControl()
        {
            OnCreate();

            InitializeComponent();
            InitializeComponentInternal();
            splitView.Resizing += SplitView_Resizing;
            splitView.HideLeft += SplitView_HideLeft;
            splitView.HideTop  += SplitView_HideTop;


            LowerRight             = GetNewView();
            LowerRight.AllowDrop   = true;
            LowerRight.BorderColor = Color.White;
            LowerRight.BorderStyle = BorderStyle.None;
            LowerRight.Location    = new Point(0, 0);
            LowerRight.Size        = new Size(100, 100);

            Views = new List <SplitViewChildControl>();
            LowerRight.TopThumb.MouseDown  += TopThumb_MouseDown;
            LowerRight.LeftThumb.MouseDown += LeftThumb_MouseDown;
            Views.Add(LowerRight);
            LowerRight.TopThumbVisible  = true;
            LowerRight.LeftThumbVisible = true;
            splitView.Controls.Add(LowerRight);
            splitView.LowerRight = LowerRight;

            SplitView        = true;
            ScrollBars       = ScrollBars.Both;
            BorderStyle      = BorderStyle.None;
            ChildBorderColor = SystemColors.ControlDark;
            ChildBorderStyle = BorderStyle.FixedSingle;
            BackColor        = SystemColors.Window;
            Size             = new Size(100, 100);
            _ActiveView      = LowerRight;
        }
        public SplitViewParentControl()
            : base()
        {
            this.OnCreate();

            this.InitializeComponent();
            this.InitializeComponentInternal();
            this.splitView.Resizing += new EventHandler(this.SplitView_Resizing);
            this.splitView.HideLeft += new EventHandler(this.SplitView_HideLeft);
            this.splitView.HideTop += new EventHandler(this.SplitView_HideTop);

            this.LowerRight = GetNewView();
            this.LowerRight.AllowDrop = true;
            this.LowerRight.BorderColor = Color.White;
            this.LowerRight.BorderStyle = BorderStyle.None;
            this.LowerRight.Location = new Point(0, 0);
            this.LowerRight.Size = new Size(100, 100);

            this.Views = new ArrayList();
            LowerRight.TopThumb.MouseDown += new MouseEventHandler(TopThumb_MouseDown);
            LowerRight.LeftThumb.MouseDown += new MouseEventHandler(LeftThumb_MouseDown);
            Views.Add(LowerRight);
            LowerRight.TopThumbVisible = true;
            LowerRight.LeftThumbVisible = true;
            this.splitView.Controls.Add(this.LowerRight);
            this.splitView.LowerRight = this.LowerRight;

            this.SplitView = true;
            this.ScrollBars = ScrollBars.Both;
            this.BorderStyle = BorderStyle.None;
            this.ChildBorderColor = SystemColors.ControlDark;
            this.ChildBorderStyle = BorderStyle.FixedSingle;
            this.BackColor = SystemColors.Window;
            this.Size = new Size(100, 100);
            _ActiveView = LowerRight;
        }
Beispiel #8
0
 protected void View_Enter(object sender, EventArgs e)
 {
     _ActiveView = (SplitViewChildControl)sender;
 }
 protected void View_Enter(object sender, EventArgs e)
 {
     _ActiveView = (SplitViewChildControl) sender;
 }
        protected virtual void ActivateSplits()
        {
            if (UpperLeft == null)
            {
                UpperLeft = GetNewView();
                UpperRight = GetNewView();
                LowerLeft = GetNewView();

                splitView.Controls.AddRange(new Control[]
                                            {
                                                UpperLeft,
                                                LowerLeft,
                                                UpperRight
                                            });

                splitView.UpperRight = LowerLeft;
                splitView.UpperLeft = UpperLeft;
                splitView.LowerLeft = UpperRight;

                CreateViews();
            }
        }
 private void InitializeComponentInternal()
 {
     this.splitView = new SplitViewControl();
     this.SuspendLayout();
     //
     // splitView
     //
     this.splitView.BackColor = Color.Empty;
     this.splitView.Dock = DockStyle.Fill;
     this.splitView.LowerLeft = null;
     this.splitView.LowerRight = null;
     this.splitView.Name = "splitView";
     this.splitView.Size = new Size(248, 216);
     this.splitView.SplitviewH = -4;
     this.splitView.SplitviewV = -4;
     this.splitView.TabIndex = 0;
     this.splitView.Text = "splitView";
     this.splitView.UpperLeft = null;
     this.splitView.UpperRight = null;
     //
     // SplitViewParentControl
     //
     this.Controls.AddRange(new Control[]
         {
             this.splitView
         });
     this.Name = "SplitViewParentControl";
     this.Size = new Size(248, 216);
     this.ResumeLayout(false);
 }
        protected virtual void ActivateSplits()
        {
            if (this.UpperLeft == null)
            {
                this.UpperLeft = GetNewView();
                this.UpperRight = GetNewView();
                this.LowerLeft = GetNewView();

                this.splitView.Controls.AddRange(new Control[]
                    {
                        this.UpperLeft,
                        this.LowerLeft,
                        this.UpperRight
                    });

                this.splitView.UpperRight = this.LowerLeft;
                this.splitView.UpperLeft = this.UpperLeft;
                this.splitView.LowerLeft = this.UpperRight;

                CreateViews();

            }
        }