private void InitGroupBoxes()
        {
            _groupBoxes = new Ekstrand.Windows.Forms.EnhanceGroupBox[ArraySize];

            for (int i = 0; i < ArraySize; i++)
            {
                _groupBoxes[i] = new Ekstrand.Windows.Forms.EnhanceGroupBox();
            }

            _groupBoxes[0].Text                         = "Enhance";
            _groupBoxes[0].GroupBoxStyle                = GroupBoxStyle.Enhance;
            _groupBoxes[0].HeaderElements.BackColor     = System.Drawing.Color.SkyBlue;
            _groupBoxes[0].HeaderElements.BorderColor   = System.Drawing.Color.Black;
            _groupBoxes[0].HeaderElements.TextAlignment = BorderTextAlignment.TopRight;
            _groupBoxes[0].BorderElements.BorderColor   = System.Drawing.Color.Black;

            _groupBoxes[1].Text          = "Enhance";
            _groupBoxes[1].GroupBoxStyle = GroupBoxStyle.Enhance;
            _groupBoxes[1].BackColor     = System.Drawing.Color.SkyBlue;
            _groupBoxes[1].BorderElements.BorderColor   = System.Drawing.Color.Black;
            _groupBoxes[1].BorderElements.Radius        = 5;
            _groupBoxes[1].BorderElements.BorderCorners = BorderCorners.All;
            _groupBoxes[1].HeaderElements.BackColor     = System.Drawing.Color.SkyBlue;
            _groupBoxes[1].HeaderElements.Radius        = 0;
            _groupBoxes[1].HeaderElements.Width         = 1;
            _groupBoxes[1].HeaderElements.BorderColor   = System.Drawing.Color.DarkBlue;
            _groupBoxes[1].HeaderElements.TextAlignment = BorderTextAlignment.TopCenter;

            _groupBoxes[2].Text          = "Enhance";
            _groupBoxes[2].GroupBoxStyle = GroupBoxStyle.Enhance;
            _groupBoxes[2].BackColor     = System.Drawing.Color.LightGray;
            _groupBoxes[2].HeaderElements.TextAlignment            = BorderTextAlignment.TopRight;
            _groupBoxes[2].BorderElements.BorderColor              = System.Drawing.Color.Black;
            _groupBoxes[2].HeaderElements.BorderColor              = System.Drawing.Color.Black;
            _groupBoxes[2].HeaderElements.BackColor                = System.Drawing.Color.SkyBlue;
            _groupBoxes[2].HeaderElements.Radius                   = 5;
            _groupBoxes[2].HeaderElements.BorderCorners            = BorderCorners.All;
            _groupBoxes[2].HeaderElements.DashStyle                = System.Drawing.Drawing2D.DashStyle.Dot;
            _groupBoxes[2].InsideBorderElements.GradientStartColor = System.Drawing.Color.LightGray;
            _groupBoxes[2].InsideBorderElements.GradientEndColor   = System.Drawing.SystemColors.Control;
            _groupBoxes[2].InsideBorderElements.GradientMode       = EnhanceGroupBoxGradientMode.Vertical;

            _groupBoxes[3].Text          = "Enhance";
            _groupBoxes[3].GroupBoxStyle = GroupBoxStyle.Enhance;
            _groupBoxes[3].HeaderElements.GradientStartColor = System.Drawing.Color.Red;
            _groupBoxes[3].HeaderElements.GradientEndColor   = System.Drawing.Color.White;
            _groupBoxes[3].HeaderElements.GradientMode       = EnhanceGroupBoxGradientMode.Horizontal;
            _groupBoxes[3].HeaderElements.TextAlignment      = BorderTextAlignment.TopCenter;
            _groupBoxes[3].HeaderElements.Radius             = 5;
            _groupBoxes[3].HeaderElements.BorderCorners      = BorderCorners.TopLeft | BorderCorners.TopRight;
            _groupBoxes[3].HeaderElements.DashStyle          = System.Drawing.Drawing2D.DashStyle.Solid;
            _groupBoxes[3].HeaderElements.Width = 1;
            _groupBoxes[3].InsideBorderElements.GradientMode       = EnhanceGroupBoxGradientMode.Vertical;
            _groupBoxes[3].InsideBorderElements.GradientStartColor = System.Drawing.Color.WhiteSmoke;
            _groupBoxes[3].InsideBorderElements.GradientEndColor   = System.Drawing.SystemColors.Control;
        }
Beispiel #2
0
        public Form1()
        {
            InitializeComponent();

            Ekstrand.Windows.Forms.EnhanceGroupBox gp = new Ekstrand.Windows.Forms.EnhanceGroupBox();
            gp.Location                          = new Point(558, 140);
            gp.GroupBoxStyle                     = GroupBoxStyle.Enhance;
            gp.HeaderElements.Width              = 0;
            gp.HeaderElements.GradientEndColor   = Color.White;
            gp.HeaderElements.GradientStartColor = Color.Red;
            gp.HeaderElements.GradientMode       = EnhanceGroupBoxGradientMode.Horizontal;
            gp.Text = "Enhance";
            this.Controls.Add(gp);
        }
        private void InitGroupBoxes()
        {
            _groupBoxes = new Ekstrand.Windows.Forms.EnhanceGroupBox[ArraySize];

            for (int i = 0; i < ArraySize; i++)
            {
                _groupBoxes[i] = new Ekstrand.Windows.Forms.EnhanceGroupBox();
            }


            _groupBoxes[0].Text                 = "Excitative";
            _groupBoxes[0].GroupBoxStyle        = GroupBoxStyle.Excitative;
            _groupBoxes[0].HeaderElements.Width = 0;

            // top left text with header text area with rounded corners
            _groupBoxes[1].Text          = "Excitative";
            _groupBoxes[1].GroupBoxStyle = GroupBoxStyle.Excitative;
            _groupBoxes[1].HeaderElements.TextAlignment = BorderTextAlignment.TopLeft;
            _groupBoxes[1].HeaderElements.BackColor     = System.Drawing.Color.Tomato;
            _groupBoxes[1].HeaderElements.Width         = 0;

            _groupBoxes[2].Text          = "Excitative";
            _groupBoxes[2].GroupBoxStyle = GroupBoxStyle.Excitative;
            _groupBoxes[2].BorderElements.BorderColor   = System.Drawing.Color.Black;
            _groupBoxes[2].HeaderElements.BorderColor   = System.Drawing.Color.Black;
            _groupBoxes[2].HeaderElements.BackColor     = System.Drawing.Color.SkyBlue;
            _groupBoxes[2].HeaderElements.Radius        = 5;
            _groupBoxes[2].HeaderElements.BorderCorners = BorderCorners.All;
            _groupBoxes[2].HeaderElements.DashStyle     = System.Drawing.Drawing2D.DashStyle.Solid;


            _groupBoxes[3].Text          = "Excitative";
            _groupBoxes[3].GroupBoxStyle = GroupBoxStyle.Excitative;
            _groupBoxes[3].BackColor     = System.Drawing.SystemColors.ControlLight;
            _groupBoxes[3].HeaderElements.GradientMode       = EnhanceGroupBoxGradientMode.Horizontal;
            _groupBoxes[3].HeaderElements.GradientStartColor = System.Drawing.Color.Red;
            _groupBoxes[3].HeaderElements.GradientEndColor   = System.Drawing.SystemColors.Control;
            _groupBoxes[3].HeaderElements.BorderCorners      = BorderCorners.None;
            _groupBoxes[3].HeaderElements.Radius             = 0;
            _groupBoxes[3].HeaderElements.TextAlignment      = BorderTextAlignment.BottomCenter;
            _groupBoxes[3].HeaderElements.Width       = 0;
            _groupBoxes[3].BorderElements.BorderColor = System.Drawing.Color.Black;
            _groupBoxes[3].BorderElements.BackColor   = System.Drawing.Color.Transparent;
            _groupBoxes[3].InsideBorderElements.GradientStartColor = System.Drawing.Color.Khaki;
            _groupBoxes[3].InsideBorderElements.GradientEndColor   = System.Drawing.SystemColors.Control;
            _groupBoxes[3].InsideBorderElements.GradientMode       = EnhanceGroupBoxGradientMode.Vertical;
        }
Beispiel #4
0
 public SelectedEventArgs(Ekstrand.Windows.Forms.EnhanceGroupBox groupBox)
 {
     _groupBox = groupBox;
 }
Beispiel #5
0
 internal EnhanceGroupBoxAccessibleObject(EnhanceGroupBox owner) : base(owner)
 {
 }