RAD Studio
ContentsIndex
PreviousUpNext
Types of Events

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

  • User events
  • System events
  • Internal 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 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 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.

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!