Re: Which form in Application.OnModalBegin and Application.OnModalEnd



Fons wrote:

Can I in Application.OnModalBegin and Application.OnModalEnd find out which form is being showed modal ?

Doesn't look like it.

What problem are you trying to solve?

To let the main form do something with the form that is being showed modal. E.g. changing the title of it with the title of the file that is loaded in the main form.

Fons.


Will the file wills change until the main form gets
the modal again?

If that is the case, you can set the title of the child
form upon creation, or in an "OnShow" event.
.