PA_WaitNextEvent

4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next

version 2003


PA_WaitNextEvent (event) char

ParameterTypeDescription
eventPA_Event *Current event
Function resultchar1 if an event is received

Description

The routine PA_WaitNextEvent must be called in the internal loop of any external process. This is mandatory in order to :

- Give time to other processes
- Get the current event (mouseDown, keyDown)

If there is an event available for the external process, returns 1, otherwise it returns 0.

Example

Please, refer to External processes for an example of use.

See Also

External processes, PA_NewProcess.

Error Handling

PA_GetLastError always returns eER_NoErr


4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next