public Control GetChildAtPoint(Point pt, GetChildAtPointSkip skipValue)
 {
     return base.GetChildAtPoint(pt, skipValue);
 }
 public Control GetChildAtPoint(System.Drawing.Point pt, GetChildAtPointSkip skipValue)
 {
 }
Пример #3
0
		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));
 }
 public Control GetChildAtPoint(System.Drawing.Point pt, GetChildAtPointSkip skipValue)
 {
 }
Пример #8
0
 public abstract Control GetChildAtPoint(Point pt, GetChildAtPointSkip skipValue);
Пример #9
0
 public ControlViewModel GetChildAtPoint(Point point, GetChildAtPointSkip skip) //IControl
 {
     throw new NotImplementedException();
 }