Skip to content

TObject.Dispatch

Dispatch an integer message

Declaration

Source position: objpash.inc line 241

public 
  procedure Dispatch(var message);  Virtual;

Description

Dispatch looks in the message handler table for a handler that handles message. The message is identified by the first dword (cardinal) in the message structure.

If no matching message handler is found, the message is passed to the DefaultHandler method, which can be overridden by descendent classes to add custom handling of messages.

See also

Name Description
DefaultHandler Default handler for integer message handlers.
DispatchStr Dispatch a string message.