TApxScript.OnScriptDisplay

TApxScript

property OnScriptDisplay : TScriptDisplayEvent;
TScriptDisplayEvent = procedure(
  CP : TObject; const Msg : String) of object;

Generated in response to script DISPLAY commands.

The script processor doesn't make any assumptions about how to display the contents of DISPLAY commands. Instead, it generates an OnScriptDisplay event passing Msg, the string to be displayed. The application can then display the string in whatever manner necessary.

One exception to this process occurs when the DisplayToTerminal property is True and the script component finds a TApxTerminal window component on the form. In that case the contents of the DISPLAY command are shown in the terminal window before OnScriptDisplay is generated.