FMX.Controls.Presentation.TPresentedControl.LoadPresentation
Delphi
procedure LoadPresentation; virtual;
C++
virtual void __fastcall LoadPresentation(void);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FMX.Controls.Presentation.pas FMX.Controls.Presentation.hpp |
FMX.Controls.Presentation | TPresentedControl |
Description
Loads the presentation proxy of your control if it is not loaded already.
LoadPresentation loads a new presentation proxy if all the following requirements are met:
- The current platform supports the presentation proxy class specified on an event handler for the OnPresentationNameChoosing event or returned by DefinePresentationName
- Your control either has not loaded any presentation proxy class or is using a presentation proxy class different from the one that it is loading now.
If the current platform does not support the specified presentation proxy class and the value of CanUseDefaultPresentation is True
, the control type switches to its default value, TControlType.Styled.
LoadPresentation is called automatically after the control is created or loaded.
See Also
- FMX.Controls.Presentation.TPresentedControl.PresentationProxy
- FMX.Controls.Presentation.TPresentationProxy
- FMX.Controls.Presentation.TPresentedControl.OnPresentationNameChoosing
- FMX.Controls.Presentation.TPresentedControl.DefinePresentationName
- FMX.Controls.Presentation.TPresentedControl.HasPresentationProxy
- FMX.Controls.Presentation.TPresentedControl.ControlType