Can I, from a modal form, activate an existing nonmodal window? I use Delphi.
In our application the users can edit reports in a nonmodal window. This is usually done by selecting "Edit reports" from the main window. But there is also a possibility to open a report from a modal print dialog. This leads to the following problem: A user opens a report for editing from the main window. He makes some changes, but doesn't save it (he minimizes it or something). Then, from the print dialog, he opens the same report again, forgetting that it's already opened or believing it's the old window, and makes some changes and saves it. Now we have a problem. Either these changes will be lost (when he remembers and opens the old edit window and saves his changes), or the old changes will be lost (when he remebers the old window and closes it without saving)
What I want is to open the old edit window when the user initiates an edit from the print dialog. I already have code to find the old edit window, but how do I activate it?