Table of Contents

TatCustomScripter.LoadFormEvents Property

Indicates whether the scripter automatically binds event handlers found in DFM files to matching script routines.

Remarks

Set LoadFormEvents to true to allow loading dfm files which contain event handlers. When a script form is compiled, the dfm file specified in directive $FORM is loaded. Usually, if the dfm contain specified event handlers, like for example "OnClick = Button1Click", an error will raised. When LoadFormEvents is true, it will check if the script contains a routine named Button1Click, and if it does, it sets the correct event handler to the component's event, as specified in the dfm. By default, LoadFormEvents is false.

Syntax

Unit: atScript

property TatCustomScripter.LoadFormEvents: Boolean

See also