FMX.Controls.TTextControl.DoRootChanging
Delphi
procedure DoRootChanging(const NewRoot: IRoot); override;
C++
virtual void __fastcall DoRootChanging(const Fmx::Types::_di_IRoot NewRoot);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | FMX.Controls.pas FMX.Controls.hpp |
FMX.Controls | TTextControl |
Description
DoRootChanging is executed when the root container (typically a form) is defined or changes.
For example, DoRootChanging is executed when this control is added to a form or moved from one form to another.
When this control works as an accelerator key receiver, DoRootChanging overrides TControl.DoRootChanging to:
- Register this control to a specific form when the text control is added to the form.
- Unregister and register this control from one form to another when this control is moved between forms.