[Overview][Procedures and functions][Index] |
Delivers a message (TLMessage) to the specified component, control or object.
Source position: lclmessageglue.pas line 34
function DeliverMessage( |
const Target: TObject; |
var AMessage |
):PtrInt; |
Target |
|
Control or object where the message is delivered. |
AMessage |
|
TLMessage instance with the message type constant and result code used in the routine. |
Pointer to the result code from the TLMessage instance.
DeliverMessage ensures that the reference count for a TLCLComponent descendant in Target is maintained during message delivery. The reference count is incremented prior to message delivery, and decremented when the operation is completed.
If Target is a TControl descendant, the TLMessage instance is sent to the WindowProc method in the control. For TObject descendants, the message is sent using the Dispatch method in the class instance.
An exception which occurs during message delivery is forwarded to the HandleException method in the Application.
|
||
|
The TApplication singleton. |
|
|
HandleException method for handling an exception; attempts to maintain program execution if possible, otherwise exits gracefully. |
|
|
The base class for LCL components which have an associated widget. |
|
|
The handler for all messages. |
|
Version 3.2 | Generated 2024-02-25 | Home |