示例#1
0
        public override void MouseDown(NSEvent theEvent)
        {
            base.MouseDown(theEvent);

            CGPoint location = ConvertPointFromView(theEvent.LocationInWindow, null);

            if (textField.IsMouseInRect(location, textField.Frame) && sourcePad != null)
            {
                sourcePad.BringToFront(true);
            }
        }
示例#2
0
 bool InTextField(CGPoint location)
 {
     return(textField.IsMouseInRect(location, textField.Frame));
 }