public override Widget HitTest(Point _point) { // The splitter itself if (HitBox.Contains(_point)) { return(this); } // The panes if (mFirstPane != null && mbDisplayFirstPane) { Widget widget = mFirstPane.HitTest(_point); if (widget != null) { return(widget); } } if (mSecondPane != null && mbDisplaySecondPane) { Widget widget = mSecondPane.HitTest(_point); if (widget != null) { return(widget); } } return(null); }
//---------------------------------------------------------------------- public override Widget HitTest(Point _point) { if (HitBox.Contains(_point)) { Widget hitWidget; for (int iChild = mlChildren.Count - 1; iChild >= 0; iChild--) { Widget child = mlChildren[iChild]; if ((hitWidget = child.HitTest(_point)) != null) { return(hitWidget); } } } return(null); }