On Fri, Jun 12, 2015 at 4:25 PM, Richard Mace <[email protected]> wrote:
> Hi, > I am trying to work out how to flash the taskbar icon in Windows 7, like > Skype does, pragmatically. I have googled, and the closest I found was > FlashWindowEx, but that doesn't actually flash the icon, just the form > window. > If your app is not the foreground app, SetForegroundWindow will flash the taskbar icon. On a new project, drop a TTimer, paste this, run, and minimize your app. procedure TForm1.Timer1Timer(Sender: TObject); begin SetForegroundWindow(Form1.Handle); end; see msdn: https://msdn.microsoft.com/en-us/library/windows/desktop/ms633539(v=vs.85).aspx "An application cannot force a window to the foreground while the user is working with another window. Instead, Windows flashes the taskbar button of the window to notify the user."
-- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
