protected override bool InternalHitTest(int x, int y) { Point position = new Point(x + OwnerX + X, y + OwnerY + Y); if (m_gumplingTop.HitTest(position, true) != null) return true; if (m_gumplingMiddle.HitTest(position, true) != null) return true; if (m_gumplingBottom.HitTest(position, true) != null) return true; if (m_gumplingExpander.HitTest(position, true) != null) return true; return false; }
protected override bool IsPointWithinControl(int x, int y) { Point position = new Point(x + ScreenX, y + ScreenY); if (m_GumplingTop.HitTest(position, true) != null) { return(true); } if (m_GumplingMiddle.HitTest(position, true) != null) { return(true); } if (m_GumplingBottom.HitTest(position, true) != null) { return(true); } if (m_IsResizable && m_GumplingExpander.HitTest(position, true) != null) { return(true); } return(false); }