public override bool HitTest(int x, int y, out int controlID, out bool focused) { if (_spinControl.HitTest(x, y, out controlID, out focused)) { _spinControl.Focus = true; return(true); } else { _spinControl.Focus = false; } return(base.HitTest(x, y, out controlID, out focused)); }
public override bool HitTest(int x, int y, out int controlID, out bool focused) { controlID = GetID; focused = Focus; int id; bool focus; if (_upDownControl.HitTest(x, y, out id, out focus)) { if (_upDownControl.GetMaximum() > 1) { _upDownControl.Focus = true; return(true); } return(true); } if (!base.HitTest(x, y, out id, out focus)) { Focus = false; return(false); } return(false); }