I’ve got an application that runs from the system tray. Before showing its window, I do some tests, and if those tests fail, I throw up an alert box using DialogWindow::showModalDialog().
This usually works fine, but testers have said that this dialog window sometimes fails to show in front of other windows already on the screen. How can I force this dialog to come to the fore? Since the dialog is created and run by the DialogWindow class, I don’t really have a chance to call toFront().
Perhaps there’s a better way to avoid this situation in general?