TTrayIcon Ballon Timer not working consistently lazarus / 4-Ported from Delphi-Kylix ---------------------------------------------------------------------- TS-MPS · 2009-11-23 16:09 Hi I'm trying to use the BalloonHint feature of the TTrayIcon but it seems to be ignoring the balloon hint timeout value in that the balloon will be shown for a minimum of whatever time I put in there, but then may stay on screen for a seemingly random amount of time afterwards. So for example, a balloon timeout of "3000" is 3 seconds, but the balloon could remain for anything from 3 seconds to 3 hours (well I'm guessing on the 3 hours, I get bored of timing it after about 30 seconds). I can seem to get it to disappear sometimes be clicking on other controls or holding the mouse down for the duration of the timer. It seems to me like it's a matter of the control not responding to messages. This seems very similar to the Bug in Delphi shown here: http://qc.embarcadero.com/wc/qcmain.aspx?d=69054 Does anyone know of a way to get TTrayIcon to consistently handle balloon timers ? I'm using Lazarus v 0.9.28.2 beta and FPC 2.2.4 on Windows XP Professional SP3 ---------------------------------------------------------------------- felipemdc · 2009-12-01 15:54 Please report in the bug tracker. About getting it fixed, you can read the code of TTrayIcon for Windows, it's located in lazarus/lcl/interfaces/win32/win32trayicon.inc It's quite small, so you can read everything and search for the error. thanks, ---------------------------------------------------------------------- TS-MPS · 2009-12-07 15:21 Quote from: sekel on December 01, 2009, 04:54:49 pmPlease report in the bug tracker. About getting it fixed, you can read the code of TTrayIcon for Windows, it's located in lazarus/lcl/interfaces/win32/win32trayicon.inc It's quite small, so you can read everything and search for the error. thanks, I can see the .INC file, but have no idea what I need to do to either fix the problem, or even how to incorporate that change into the code. Assuming I can find the bug in the .INC file, do I have to recompile that file somehow ? Is it linked in to a DLL or unit somewhere ? Can I just add it into my code as a seperate include ? Excuse my ignorance, but I have no comprehension how all this "lower level" stuff hangs together, I just put together some basic end user applications using the IDE. ---------------------------------------------------------------------- felipemdc · 2009-12-16 11:18 Quote from: TS-MPS on December 07, 2009, 04:21:11 pmAssuming I can find the bug in the .INC file That's correct. Quote, do I have to recompile that file somehow ? Yes, you need to rebuild it. After saving your modifications to the file you can go in your Lazarus IDE in the menu Tools --> Configure Build Lazarus. Go to the advanced tab, set LCL to clean+build and everything else to "None". Hit the build button. Next you need to rebuild your application so that it will use the new LCL with the fixes. Quote Is it linked in to a DLL or unit somewhere ? No, it's statically linked, that's why you need to rebuild your application to test the fix. Quote Can I just add it into my code as a seperate include ? No, never do that. QuoteExcuse my ignorance, but I have no comprehension how all this "lower level" stuff hangs together, I just put together some basic end user applications using the IDE. No one is born knowing everything =P We are all just learning on the way ... ---------------------------------------------------------------------- TS-MPS · 2010-02-10 12:19 Thanks for the help ! I can rebuild Lazarus now, but unfortunately I can't find any bugs in the TrayIcon code to fix, so sort of hit a dead end    It just doesn't seem to be processing/responding to the timeout events in any sort of consistent manner. I was going to try and use a 3rd party TrayIcon component that works correctly instead, so decided to try the CoolTrayIcon component from http://subsimple.com/delphi.asp. For the life of me I can't figure out how to get it installed as a component in Lazarus. I've tried following a guide in the Wiki, but it still won't install/compile. Either I'm doing something wrong (very possible) or it's not compatible with Lazarus in its current form. Has anyone ever tried getting the CooltrayIcon component working ?