1
I have an application that has a main form, which I call the others. The forms I call "form.Show;" are within the area of the main form, however, the ones I call "form.showmodal;" are on the main form. I would like to know if there is any way to leave the form in modal, however, within the area of the main form...
When you say "inside" the main form, you mean the application is MDI?
– Vinícius Gobbo A. de Oliveira
That’s right @Viníciusgobboa.deOliveira
– Felipe Sachetti
I believe it is not possible directly because it goes against the objective of this type of "window organization", which aims to switch between screens. Perhaps by running an event loop within the form it is possible to simulate a modal form, but would have to parse the class source code
TForm
and classTApplication
to understand how Delphi works with modal Forms. But out of the box there is certainly no way.– Vinícius Gobbo A. de Oliveira