コード例 #1
0
        public override void OnMouseDown(Point Location)
        {
            StatusElement Element;

            if (Line.HitTest(Location, out Element))
            {
                MouseDownElement            = Element;
                MouseDownElement.bMouseDown = true;

                Invalidate();
            }
        }
コード例 #2
0
ファイル: StatusPanel.cs プロジェクト: IvanYangYangXi/UE4-GW
 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);
 }