Skip to content

TObject.Dispatch

Dispatch an integer message.

Declaration

Source position: objpash.inc line 327

public 
procedure TObject.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
DispatchStr Dispatch a string message.
DefaultHandler Default handler for integer message handlers.