/// <summary>
		/// 
		/// </summary>
		/// <param name="p"></param>
		/// <returns></returns>
		protected virtual ScrollBarArea HitTest(Point p)
		{
			if (TopLeftArrowRect.Contains(p))
				return ScrollBarArea.TopLeftArrow;
			if (TopLeftInnerRect.Contains(p))
				return ScrollBarArea.TopLeftInside;
			if (ThumbRect.Contains(p))
				return ScrollBarArea.Thumb;
			if (BottomRightInnerRect.Contains(p))
				return ScrollBarArea.BottomRightInside;
			if (BottomRightArrowRect.Contains(p))
				return ScrollBarArea.BottomRightArrow;
			return ScrollBarArea.Outside;
		}
Beispiel #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="p"></param>
 /// <returns></returns>
 protected virtual ScrollBarArea HitTest(Point p)
 {
     if (TopLeftArrowRect.Contains(p))
     {
         return(ScrollBarArea.TopLeftArrow);
     }
     if (TopLeftInnerRect.Contains(p))
     {
         return(ScrollBarArea.TopLeftInside);
     }
     if (ThumbRect.Contains(p))
     {
         return(ScrollBarArea.Thumb);
     }
     if (BottomRightInnerRect.Contains(p))
     {
         return(ScrollBarArea.BottomRightInside);
     }
     if (BottomRightArrowRect.Contains(p))
     {
         return(ScrollBarArea.BottomRightArrow);
     }
     return(ScrollBarArea.Outside);
 }