Link to home
Start Free TrialLog in
Avatar of faustomen
faustomen

asked on

Showing autohiding form and blink it in the the taskbar


I need to execute the method Show, autohiding the form and blinking the task bar (like receiving new message into msn)

Avatar of beermequik
beermequik

Use the windows API
FlashWindow...
and
ShowWindow...

when you want to minimize...
ShowWindow(Application.handle, SW_MINIMIZE);

The API only flashes it once so...

To flash repeatedly use a Timer Object
TTimer.OnTimer..
FlashWindow(Application.handle, true);


to stop flashing

Form.onActivate:
TTimer.active := false;

ASKER CERTIFIED SOLUTION
Avatar of esoftbg
esoftbg
Flag of Bulgaria image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
To flash the Window use better FlashWindowEx, implemented in Windows 98, you don't need timer.

Edu