title: Windows 7 style Notifications Flyouts in Delphi
body: <p>Regarding Notification Area recommendations by Microsoft, I'm looking for ideas or a Delphi component to implement <a href="http://msdn.microsoft.com/en-us/library/aa511448.aspx#flyouts" rel="nofollow noreferrer">Notification Area Flyouts</a>.  </p>
  
  <p><img src="https://i.stack.imgur.com/ezMAO.png" alt="alt text"></p>
  
  <p>The first "natural" idea is to use a standard Delphi form, but I'm facing two issues with it:</p>
  
  <ol>
  <li>I can't get the form border behavior using the standard "BorderStyle" property.  Tried to "mimic" the border using the GlassFrame property along with BorderStyle set to bsNone, but there's no GlassFrame when there's no border (at least, in Delphi 2007).</li>
  <li>I can't figure out how to make the form close when the user clicks everywhere out of the form itself.  Yesterday I was trying with different messages, but no one works as expected.</li>
  </ol>
  
  <p>I will thank any clue or component to make it happen :)</p>
  
  <p>Best regards.</p>
  
  <p>jachguate.</p>
  
  <p>ps. There's a related question in <a href="https://stackoverflow.com/questions/1264883/converting-notification-area-icon-to-program-icon-in-win7-delphi">converting notification area icon to Program icon in Win7 (Delphi)</a>.</p>
  
  <p><strong>update[0]</strong>
  I'm still looking for advise.  @skamradt answer looks very good, but unfortunately doesn't work well in practice.  </p>
  
  <p><strong>update[1]</strong>
  Finally, The auto-close behavior is working with the WM_ACTIVATE message after a calling SetForegroundWindog to force flyout "activation"</p>
  
  <pre><code>begin
    FlyoutForm.Show;
    SetForegroundWindow(FlyoutForm.Handle);
  end;
  </code></pre>
  
  <p>Now, I'm looking for advise to reach the border behavior and visual style, because the closest behavior is achieved with style as WS_POPUP or WS_DLGFRAME, while the closest visual goal is achieved setting style as WS_POPUP or WS_THICKFRAME. </p>