RAD Studio |  |

Types of Events
User events | System events | Internal events | See Also
Collapse All

The kinds of events that can occur can be divided into two main categories:

- User events
- System events
- Internal events

User events

User events are actions that the user initiates. Examples of user events are OnClick (the user clicked the mouse), OnKeyPress (the user pressed a key on the keyboard), and OnDblClick (the user double-clicked a mouse button).

System events

System events are events that the operating system fires for you. For example, the OnTimer event (which the Timer component issues whenever a predefined interval has elapsed), the OnPaint event (a component or window needs to be redrawn), and so on. Usually, system events are not directly initiated by a user action.

Internal events

Internal events are events that are generated by the objects in your application. An example of an internal event is the OnPost event that a dataset generates when your application tells it to post the current record.

See Also

Properties

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!