TatCustomScripter.DefineFormClass Method
Registers the class of AForm in the scripter, exposing all owned components as properties of the form class.
Remarks
DefineFormClass is similar to DefineClass, with the difference that all components owned by the form/component 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
function TatCustomScripter.DefineFormClass(AForm: TComponent; AFormClassName: string): TatClass;
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| AForm | TComponent | ||
| AFormClassName | string |