Sign in Join
FPDoc Onlineexperiment

TWinControl.BroadCast procedure

Member of TWinControlpublicIn unit Controls

Posts the specified message to all of the child controls.

Declaration

pascal
procedure BroadCast(var ToAllMessage)

Arguments

ToAllMessage

The message sent in the method.

Description

Allows the specified method to be handled by one of the child Controls. The ToAllMessage argument is untyped; any TLMessage descendant can be passed as the value for the argument.

The method name is a misnomer. Broadcast implies delivery of the message simultaneously to all of the recipients. Actually, it is more like a telegraph. The message is posted sequentially to child controls until one of them handles the message using its WindowProc method.

Use NotifyControls to post a message with a specific message identifier constant to child Controls in the class instance.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.