Delphi This Is The DelphiVCL.Application.ModalLevel Property

FireWind

Свой
Регистрация
2 Дек 2005
Сообщения
1,957
Реакции
1,199
Credits
4,009
This Is The DelphiVCL.Application.ModalLevel Property
By Muhammad Azizul Hakim October 27, 2021

What is the DelphiVCL.Application.ModalLevel Property?

ModalLevel or DelphiVCL.Application.ModalLevel property gives the number of currently open modal forms.

ModalLevel is a read-only property that gives the number of modal forms which are currently open.

Any call to ModalStarted increments the value of ModalLevel, while each call to ModalFinished decrements its value.

Let’s browse all the properties and methods of the DelphiVCL.Application.ModalLevel using dir() command:
Python:
import DelphiVCL
 
dir(DelphiVCL.Application.ModalLevel)
See the responses in our Windows command prompt:
1635317834778.png
You can also read short information about the DelphiVCL.Application.ModalLevel using the print() command:
Python:
print(DelphiVCL.Application.ModalLevel)
print(DelphiVCL.Application.ModalLevel.__doc__)
See the responses in our Windows command prompt:
1635317861216.png