Sign in Join
FPDoc Onlineexperiment

TApplication.ModalLevel property

Member of TApplicationpublicIn unit Forms

The number of modal forms shown.

Declaration

pascal
property ModalLevel: Integer read FModalLevel;

Description

ModalLevel is a read-only Integer property with the number of forms displayed modally in the application.

The value in ModalLevel is incremented in the ModalStarted method. It causes the OnModalBegin event handler and application handlers for the ahtModalBegin handler type to be signalled (when assigned) when its value is 1 following the increment.

The value in ModalLevel is decremented in the ModalFinished method. It causes the OnModalEnd event handler and application handlers for the ahtModalEnd handler type to be signalled (when assigned) when its value is 0 following the decrement.

See also

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