Do not allow MODAL form to exit from inside the main form

Asked

Viewed 27 times

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...

  • 1

    When you say "inside" the main form, you mean the application is MDI?

  • That’s right @Viníciusgobboa.deOliveira

  • 1

    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 class TApplication to understand how Delphi works with modal Forms. But out of the box there is certainly no way.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.