FMX.StdCtrls.TPresentedTextControl.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.StdCtrls.pas FMX.StdCtrls.hpp |
FMX.StdCtrls | TPresentedTextControl |
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.