[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Forms' (#lcl)

TApplication.ModalLevel

The number of modal forms shown.

Declaration

Source position: forms.pp line 1743

public property TApplication.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

TApplication.ModalStarted

  

Called when a modal form display is started.

TApplication.ModalFinished

  

Called when a modal form is closed.

TApplication.OnModalBegin

  

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

TApplication.OnModalEnd

  

Event handler signalled when the last modal form for the application has been exited.

TMethodList.CallNotifyEvents


Version 3.2 Generated 2024-02-25 Home