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); }
public int SpinMaxValue() { return(_spinControl.GetMaximum()); }