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;
 }
Beispiel #2
0
        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);
        }