TatCustomScripter.AddForm Method
Registers the form instance AForm to be accessible from all scripts, exposing its owned components as properties.
Remarks
AddForm registers the form instance specified by AForm to be accessible from all scripts. The form will be accessible by its name. AddForm is similar to AddComponent, but the difference is that all components owned by the form are made available as properties of the form class. This way if you have an object MyForm you can access their components directly using for example MyForm.Edit1. Although this method mimics the behavior of a Form, any component can be passed, not only forms
Syntax
Unit: atScript
procedure TatCustomScripter.AddForm(AForm: TComponent; AFormClassName: string);
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| AForm | TComponent | ||
| AFormClassName | string |