public Content(Panel ParentPanel, NavigationControls.Curtain ParentCurtain, FlatDesign.Colors Colors, int Position)
        {
            this.Colors        = Colors;
            this.ParentCurtain = ParentCurtain;

            GroundPanel             = new Panel();
            GroundPanel.TabIndex    = 0;
            GroundPanel.TabStop     = false;
            GroundPanel.Location    = new Point((ParentPanel.Width / (Position + 1)) * Position, 0);
            GroundPanel.Size        = new Size(ParentPanel.Width / (Position + 1), ParentPanel.Height);
            GroundPanel.BorderStyle = BorderStyle.None;
            GroundPanel.BackColor   = Colors.Background;
            GroundPanel.MouseWheel += GroundPanel_MouseWheel;
            GroundPanel.MouseClick += Control_MouseClick;

            PointerPanel             = new Panel();
            PointerPanel.TabIndex    = 0;
            PointerPanel.TabStop     = false;
            PointerPanel.Location    = new Point(5, 5);
            PointerPanel.Size        = new Size(GroundPanel.Width - 10, 0);
            PointerPanel.BorderStyle = BorderStyle.None;
            PointerPanel.BackColor   = Colors.Background;
            PointerPanel.MouseClick += Control_MouseClick;

            ScrollBarPanel             = new Panel();
            ScrollBarPanel.TabIndex    = 0;
            ScrollBarPanel.TabStop     = false;
            ScrollBarPanel.Location    = new Point(GroundPanel.Width - 10, 5);
            ScrollBarPanel.Size        = new Size(5, GroundPanel.Height - 10);
            ScrollBarPanel.BorderStyle = BorderStyle.None;
            ScrollBarPanel.BackColor   = Colors.Background;
            ScrollBarPanel.MouseClick += Control_MouseClick;

            ScrollSliderPanel             = new Panel();
            ScrollSliderPanel.TabIndex    = 0;
            ScrollSliderPanel.TabStop     = false;
            ScrollSliderPanel.Location    = new Point(0, 0);
            ScrollSliderPanel.Size        = new Size(ScrollBarPanel.Width, ScrollBarPanel.Height);
            ScrollSliderPanel.BorderStyle = BorderStyle.None;
            ScrollSliderPanel.BackColor   = Colors.Background;
            ScrollSliderPanel.MouseClick += Control_MouseClick;

            ScrollBarPanel.Controls.Add(ScrollSliderPanel);

            GroundPanel.Controls.Add(PointerPanel);
            GroundPanel.Controls.Add(ScrollBarPanel);

            ParentPanel.Controls.Add(GroundPanel);
        }
Example #2
0
 public void SetOriginCurtain(NavigationControls.Curtain Curtain)
 {
     this.Curtain = Curtain;
 }