title: How do I discover if my delphi application currently has a modal window?
body: <p>I've got a timer running in my Delphi MDI application and I'd like to use it to pop up a message if something changes in the background. But I don't want that message to pop up when the the application has a modal dialog in the foreground because the user couldn't do anything about it. </p>
  
  <p>So what I'd like to know is how can I check for the existence of a modal dialog in my application?</p>