Sign in Join
FPDoc Onlineexperiment

TApplication.OnModalBegin property

Member of TApplicationpublicIn unit Forms

Event handler signalled when a form in the application is displayed as a modal form.

Declaration

pascal
property OnModalBegin: TNotifyEvent read FOnModalBegin write FOnModalBegin;

Description

OnModalBegin is a TNotifyEvent property with the event handler signalled when a form in the application is displayed as a modal form.

OnModalBegin is signalled from the ModalStarted method, which is called when the form instance calls its ShowModal method. It occurs only once - when the first modal form is displayed. Subsequent events are ignored in ModalStarted when a modal form is already active.

Use OnModalEnd to perform actions needed when the number of modal forms for the application reaches 0 (zero).

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.