Sign in Join
FPDoc Onlineexperiment

TControl.Perform function

Member of TControlpublicIn unit Controls

Calls a message handler directly, bypassing the message queue.

Declaration

pascal
function Perform(Msg: Cardinal; WParam: WParam; LParam: LParam)
: LRESULT

Arguments

Msg

Control message constant for the message executed in the method.

WParam

Parameter with a handle or Integer value (not necessarily 16-bits any more).

LParam

Parameter with a Pointer to its value (not necessarily 32-bits any more).

Function result

Result value from the WindowProc routine.

Description

Perform is a method used to pass a message to the processing loop for the control.

Values in the Msg, WParam, and LParam arguments are stored in a TLMessage instance and passed as an argument to the routine in the WindowProc property. The return value is the LRESULT returned from the WindowProc routine.

See also

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