protected GetHitTest ( Point point ) : bool | ||
point | Point | A Point indicating the position at which the mouse was clicked, in screen coordinates. |
return | bool |
protected override bool GetHitTest(Point point)
{
if (_textBox != null)
{
// Ask the control if it wants to process the point
bool ret = _textBox.DesignerGetHitTest(_textBox.PointToClient(point));
// If the navigator does not want the mouse point then make sure the
// tracking element is informed that the mouse has left the control
if (!ret && _lastHitTest)
_textBox.DesignerMouseLeave();
// Cache the last answer recovered
_lastHitTest = ret;
return ret;
}
else
return false;
}