FMX.Controls.TPopup.AniDuration
Delphi
property AniDuration: Single read FAniDuration write SetAniDuration;
C++
__property float AniDuration = {read=FAniDuration, write=SetAniDuration};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | FMX.Controls.pas FMX.Controls.hpp |
FMX.Controls | TPopup |
Description
Sets the timeout for the TPopup to close.
Use the AniDuration property to set the time before the TPopup will be automatically closed. The property value range is between 0 and 1, and it represents seconds.
For example, the following code will set up the TPopup to automatically close after 0.5 seconds :
Delphi :
Popup1.AniDuration := 0.5;
C++ Builder :
Popup1->AniDuration = 0.5;
Note: In order to display the Popup, call the Popup method, or set the IsOpen property to True.