Example #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);
            }
        }
Example #2
0
 bool InTextField(CGPoint location)
 {
     return(textField.IsMouseInRect(location, textField.Frame));
 }