Generating a New Event Handler

From RAD Studio
Jump to: navigation, search

Go Up to Working with Events and Event Handlers

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, and then either double-click the Value column or press Ctrl+Enter. The Code Editor opens with the cursor inside the skeleton event handler.
  4. At the cursor, type the code that you want to execute when the event occurs.

See Also