FMX.SpinBox.TSpinBox.DefinePresentationName
Delphi
function DefinePresentationName: string; override;
C++
virtual System::UnicodeString __fastcall DefinePresentationName();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | FMX.SpinBox.pas FMX.SpinBox.hpp |
FMX.SpinBox | TSpinBox |
Description
Returns the name of the default presentation proxy that your presented control uses.
FMX.SpinBox.TSpinBox.DefinePresentationName inherits from FMX.Controls.Presentation.TPresentedControl.DefinePresentationName. All content below this line refers to FMX.Controls.Presentation.TPresentedControl.DefinePresentationName.
Returns the name of the default presentation proxy that your presented control uses.
You can handle OnPresentationNameChoosing to specify a presentation proxy name to use instead of the name that DefinePresentationName returns.
DefinePresentationName calls TPresentationProxyFactory.GeneratePresentationName and returns a generated presentation proxy name based on the class name of the presented control and the control type (Styled
or Platform
) of the presentation layer. For example:
Class name | Control type | Result |
---|---|---|
TMyPresentedControl
|
Styled
|
"MyPresentedControl-Styled"
|
TMyPresentedControl
|
Platform
|
"MyPresentedControl-Platform"
|