コード例 #1
0
 public Control GetChildAtPoint(Point pt, GetChildAtPointSkip skipValue)
 {
     return base.GetChildAtPoint(pt, skipValue);
 }
コード例 #2
0
 public Control GetChildAtPoint(System.Drawing.Point pt, GetChildAtPointSkip skipValue)
 {
 }
コード例 #3
0
ファイル: Control.cs プロジェクト: nlhepler/mono
		public Control GetChildAtPoint (Point pt, GetChildAtPointSkip skipValue)
		{
			// MS's version causes the handle to be created.  The stack trace shows that get_Handle is called here, but
			// we'll just call CreateHandle instead.
			if (!IsHandleCreated)
				CreateHandle ();

			// Microsoft's version of this function doesn't seem to work, so I can't check
			// if we only consider children or also grandchildren, etc.
			// I'm gonna say 'children only'
			foreach (Control child in Controls) {
				if ((skipValue & GetChildAtPointSkip.Disabled) == GetChildAtPointSkip.Disabled && !child.Enabled)
					continue;
				else if ((skipValue & GetChildAtPointSkip.Invisible) == GetChildAtPointSkip.Invisible && !child.Visible)
					continue;
				else if ((skipValue & GetChildAtPointSkip.Transparent) == GetChildAtPointSkip.Transparent && child.BackColor.A == 0x0)
					continue;
				else if (child.Bounds.Contains (pt))
					return child;
			}

			return null;
		}
コード例 #4
0
		public Control GetChildAtPoint (Point pt, GetChildAtPointSkip skipValue)
		{
			
			// Microsoft's version of this function doesn't seem to work, so I can't check
			// if we only consider children or also grandchildren, etc.
			// I'm gonna say 'children only'
			foreach (Control child in Controls)
			{
				if ((skipValue & GetChildAtPointSkip.Disabled) == GetChildAtPointSkip.Disabled && !child.Enabled)
					continue;
				else if ((skipValue & GetChildAtPointSkip.Invisible) == GetChildAtPointSkip.Invisible && !child.Visible)
					continue;
				else if ((skipValue & GetChildAtPointSkip.Transparent) == GetChildAtPointSkip.Transparent && child.BackColor.A == 0x0)
					continue;
				else if (child.Bounds.Contains (pt))
					return child;
			}
			
			return null;
		}
コード例 #5
0
 public new Control GetChildAtPoint(Point pt, GetChildAtPointSkip skipValue)
 {
     throw null;
 }
コード例 #6
0
 public new Control GetChildAtPoint(Point pt, GetChildAtPointSkip skipValue)
 {
     return(base.GetChildAtPoint(pt, skipValue));
 }
コード例 #7
0
 public Control GetChildAtPoint(System.Drawing.Point pt, GetChildAtPointSkip skipValue)
 {
 }
コード例 #8
0
ファイル: ControlBase.cs プロジェクト: studentutu/SharpUtils
 public abstract Control GetChildAtPoint(Point pt, GetChildAtPointSkip skipValue);
コード例 #9
0
 public ControlViewModel GetChildAtPoint(Point point, GetChildAtPointSkip skip) //IControl
 {
     throw new NotImplementedException();
 }