Defining Your Own Messages

From RAD Studio
Jump to: navigation, search

Go Up to Creating New Message Handlers

A number of the standard components define messages for internal use. The most common reasons for defining messages are broadcasting information not covered by standard messages and notification of state changes. You can define your own messages in the VCL.

Defining a message is a two-step process. The steps are:

  1. Declaring a Message Identifier
  2. Declaring a Message-structure Type