using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms.Design;
using System.Drawing;

namespace _SCREEN_CAPTURE
{
    /// <summary>
    /// 
    /// </summary>
    internal class ToolButtonDesigner : ControlDesigner
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="pe"></param>
        protected override void OnPaintAdornments(System.Windows.Forms.PaintEventArgs pe) {
            Pen p = new Pen(Color.SteelBlue, 1)
            {
                DashStyle = System.Drawing.Drawing2D.DashStyle.Dot
            };
            pe.Graphics.DrawRectangle(p, 0, 0, pe.ClipRectangle.Width - 1, 20);
            p.Dispose();
            base.OnPaintAdornments(pe);
        }
        /// <summary>
        /// 
        /// </summary>
        public override SelectionRules SelectionRules {
            get {
                return base.SelectionRules & ~SelectionRules.AllSizeable;
            }
        }
    }
}
