Show: Delphi C++
Display Preferences

FMX.Controls.Presentation.TPresentedControl.OnPresentationNameChoosing

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnPresentationNameChoosing: TPresenterNameChoosingEvent read FOnPresenterNameChoosing write FOnPresenterNameChoosing;

C++

__property TPresenterNameChoosingEvent OnPresentationNameChoosing = {read=FOnPresenterNameChoosing, write=FOnPresenterNameChoosing};

Properties

Type Visibility Source Unit Parent
event public
FMX.Controls.Presentation.pas
FMX.Controls.Presentation.hpp
FMX.Controls.Presentation TPresentedControl

Description

Occurs right before your control loads its presentation, and it allows you to define a custom presentation proxy name different from the name that DefinePresentationName returns.

The event handler of OnPresentationNameChoosing receives the following parameters:

  • Sender is your control.
  • PresenterName is the name that DefinePresentationName returns. Assign PresenterName a new, previously-registered presentation proxy name to use the matching presentation proxy class for the presentation of the control.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance