reconize if the form shows in a dialog

I would like to have a function like boolean = application.formInDialog to check if a form is shown as a dialog or not (application.showFormInDialog). Sure, we can do that by setting a global but the suggestion function is more elegant…

Thanks…

You got my vote… :D

just curious. when whould you call that?

I use the same form both in a normal show and via showFormInDialog

Example 1:
I have a button to close a window/go back to previous form. The method would differ if I am working in a dialog…

Example 2: I call another form from the dialog. When I do so from a normal show I can do that via the same show call. When I would use that from a dialog I will see that form appear in the background while I want it to appear in the foreground…

added isFormInDialog(form) to application node. (2.0RC7)

Thanks… Again…