RAD Studio |  |

Generating a New Event Handler
See Also
Collapse All

You can generate skeleton event handlers for forms and other components.

To create an event handler:

1. Select a component.
2. Click the Events tab in the Object Inspector. The Events page of the Object Inspector displays all events defined for the component.
3. Select the event you want, then double-click the Value column or press Ctrl+Enter. The Code editor opens with the cursor inside the skeleton event handler, or begin...end block.
4. At the cursor, type the code that you want to execute when the event occurs.

See Also

Working with Events and Event Handlers

Generating a Handler for a Component's Default Event

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