Event XbpCrt():enter Foundation

Mouse moved into Crt object.

:enter := {| aPos, uNIL, self | ... }
:enter( <aPos> ) --> self
xbeM_Enter (1048581)
<aPos> is an array containing two elements { nX, nY } that specifies the current position of the mouse pointer. In text mode the coordinates are given as { nRow, nCol } and in graphics mode they are { nX, nY }.

This method returns the object executing the method (self).


The xbeM_Enter event is generated when the mouse pointer is moved into the display rectangle of an XbpCrt object. Together with its counterpart xbeM_Leave, xbeM_Enter can be used to detect when the mouse is positioned over the object. This can be used to give visual feedback as to which control would be activated if the mouse was clicked at a certain position.

In order to receive the xbeM_Enter notification, a Crt object must be configured to track mouse pointer movement. This is done automatically when a code block is assigned to the :enter callback slot. If xbeM_Enter is to be processed via the callback method :enter(), the method must be overloaded in a derived class. Furthermore, :setTrackPointer() must be called explicitly. This may be done in the :create() method of the derived class.

The xbeM_Enter event is sent synchronously via the :handleEvent() method of an XbpCrt object. This means that xbeM_Enter is not retrieved by the AppEvent() function. As it is generated while the user moves the mouse, we strongly discourage to perform lengthy operations while processing the event.

In order to receive the xbeM_Enter notification, mouse notifications must be enabled using SetMouse(.T.).


If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.