Ejemplo n.º 1
0
        protected override void OnRenderSeparator(ToolStripSeparatorRenderEventArgs e)
        {
            Graphics g = e.Graphics;

            using (Pen pen = new Pen(ToolStripBorderColor.Lighten(15))) {
                int center = ( int )(e.Item.Bounds.Width / 2);
                g.DrawLine(pen, center, 1, center, e.Item.Bounds.Height - 2);
            }
        }
Ejemplo n.º 2
0
        protected override void OnRenderGrip(ToolStripGripRenderEventArgs e)
        {
            Graphics g = e.Graphics;

            using (Pen pen = new Pen(ToolStripBorderColor.Lighten(10))) {
                //pen.DashStyle = DashStyle.Dot;
                g.DrawLine(pen, e.GripBounds.X, e.GripBounds.Y + 1, e.GripBounds.X, e.GripBounds.Bottom);
                g.DrawLine(pen, e.GripBounds.X + 2, e.GripBounds.Y + 1, e.GripBounds.X + 2, e.GripBounds.Bottom);
            }
        }