FMX.Controls.TPopup.PopupModal

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function PopupModal: TModalResult; virtual;

C++

virtual System::Uitypes::TModalResult __fastcall PopupModal();

Properties

Type Visibility Source Unit Parent
function public
FMX.Controls.pas
FMX.Controls.hpp
FMX.Controls TPopup

Description

Returns whether and how the modal form of TPopup closes.

PopupModal returns 0 if the modal form is not closed. Otherwise PopupModal returns the value of the ModalResult property.

To change how the modal form of TPopup is closed, set the ModalResult property.

You can check a return value using the global IsAbortResult, IsAnAllResult, IsNegativeResult, or IsPositiveResult functions and use the StripAllFromResult function to convert the return value from a constant that refers to "all" to the corresponding simple constant.

See Also