Balloon hints on Delphi app tray icon keep popping up indefinitely -
i have delphi 2006 app can minimize tray icon, , displays various alert messages via balloon hint on tray icon.
under circumstances - don't know when - displayed balloon hint keeps popping , won't go away. displays length of time programmed, closes, reappears.
it balloon hint app.
if app displays balloon hint, 1 shows programmed time, phantom hint resumes.
it if hint stuck in queue somewhere , doesn't removed. in absence of inspiration (i realise it's long shot...), know how purge balloon hints?
which trayicon using? tcustomtrayicon in "vcl.extctrls" uses tnotifyicondata send popup trayicon. properties require windows vista or later.
public fdata: tnotifyicondata; //winapi.shellapi procedure tcustomtrayicon.showballoonhint; begin fdata.uflags := fdata.uflags or nif_info; fdata.dwinfoflags := cardinal(fballoonflags); shell_notifyicon(nim_modify, fdata); //refresh(nim_modify); end;
you can see whats going on handling messages send trayicon.
nin_balloonshow = wm_user + 2; nin_balloonhide = wm_user + 3; nin_balloontimeout = wm_user + 4; nin_balloonuserclick = wm_user + 5;
Comments
Post a Comment