Function GetEventReader() Foundation
Implements the default READ behavior of a single Get object for the event code returned by AppEvent().
GetEventReader( <oGet> ) --> NIL
The return value of GetEventReader() is always NIL.
GetEventReader() implements the default READ behavior of individual Get objects and handles mouse and keyboard events. Events are handled by calling GetHandleEvent(). In addition, GetEventReader() takes care of the data validation before and after input.
For compatibility reasons, the keyboard is read by Inkey() by default, and the mouse is not active. In order to handle events in the Get system using GetEventReader(), SetMouse(.T.) must be called before the first call to READ or ReadModal(). Alternatively, GetEventReader() can be activated by calling GetEnableEvents(.T.). Note that GetEnableEvents(.T.) only causes GetEventReader() to be used for handling data input. It does not activate the mouse, so without SetMouse(.T.), no mouse events will be handled by GetEventReader().
User-defined Get readers can be used to replace the default reader of the Xbase++ Get system by specifying a function call within a code block that replaces GetEventReader() as the input handler. This code block is assigned to the instance variable oGet:reader. If the instance variable contains a code block, the code block is evaluated and its function executed with the Get object as its parameter, replacing GetEventReader().
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.