public override void OnMouseDown(Point Location) { StatusElement Element; if (Line.HitTest(Location, out Element)) { MouseDownElement = Element; MouseDownElement.bMouseDown = true; Invalidate(); } }
protected bool HitTest(Point Location, out StatusElement OutElement) { OutElement = null; foreach (StatusLine Line in Lines) { if (Line.HitTest(Location, out OutElement)) { return(true); } } if (Caption != null) { if (Caption.HitTest(Location, out OutElement)) { return(true); } } if (Alert != null) { if (Alert.HitTest(Location, out OutElement)) { return(true); } } return(false); }