Exemplo n.º 1
0
 /// <summary>
 /// Resets property to it's default value
 /// </summary>
 public void ResetKnobColor()
 {
     KnobColor = KnobColorTable.Empty;
 }
Exemplo n.º 2
0
        /// <summary>
        /// Constructor
        /// </summary>
        public KnobControl()
        {
            // Initialize our control

            InitializeComponent();

            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            SetStyle(ControlStyles.ResizeRedraw, true);
            SetStyle(ControlStyles.StandardDoubleClick, true);
            SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            SetStyle(ControlStyles.SupportsTransparentBackColor, true);
            SetStyle(ControlStyles.Selectable, true);

            // Set our Knob Style and default KnobColorTable 

            SetKnobStyle(eKnobStyle.Style1);

            KnobColor = new KnobColorTable();

            // Hook on to our events

            HookEvents(true);
        }