private void HSLPicker_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
// check coordinates of MIN pointer
if ((e.X >= ptMin.X - 4) && (e.Y >= ptMin.Y - 4) &&
(e.X < ptMin.X + 4) && (e.Y < ptMin.Y + 4))
{
trackMode = 1;
}
if (type == HuePickerType.Range)
{
// check coordinates of MAX pointer
if ((e.X >= ptMax.X - 4) && (e.Y >= ptMax.Y - 4) &&
(e.X < ptMax.X + 4) && (e.Y < ptMax.Y + 4))
{
trackMode = 2;
}
}
if (trackMode != 0)
this.Capture = true;
}