/// <summary> /// Initializes a new instance of the <see cref="ColorSelectControl"/> class. /// Default constructor /// </summary> public ColorSelectControl() { // This call is required by the Windows.Forms Form Designer. InitializeComponent(); m_ControlID = 0; m_Hue = 240.0f; m_Luminance = 0.5f; m_Saturation = 0.5f; m_Timer = new Timer(); m_Timer.Tick += Timer_Tick; m_Timer.Enabled = false; m_Timer.Interval = 100; // 10 clicks a second m_cscHost = null; m_bHasFocus = false; // fast double buffering for flicker-free drawing SetStyle( ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint | ControlStyles.DoubleBuffer | ControlStyles.ResizeRedraw, true); }
/// <summary> /// Default constructor /// </summary> public ColorSelectControl() { // This call is required by the Windows.Forms Form Designer. InitializeComponent(); m_ControlID = 0; m_Hue = 240.0f; m_Luminance = 0.5f; m_Saturation = 0.5f; m_Timer = new Timer(); m_Timer.Tick += new EventHandler(Timer_Tick); m_Timer.Enabled = false; m_Timer.Interval = 100; // 10 clicks a second m_cscHost = null; m_bHasFocus = false; // fast double buffering for flicker-free drawing SetStyle( ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint | ControlStyles.DoubleBuffer | ControlStyles.ResizeRedraw, true); }