Re: [Lazarus] Trayicon troubles
On Tue, Dec 9, 2008 at 6:07 PM, Sebastian Kraft [EMAIL PROTECTED] wrote: 1. is it possible to have a trayicon with transparent background? I created the icon from a png where the background was transparent but the icon in the panel shows a grey back. Which fpc, laz and os version? 2. How can I show this balloon thing? Use the following properties: ShowBalloonHint, GetPosition, BalloonFlags, BalloonHint, BalloonTimeout, BalloonTitle I think that GetPosition isn't implemented in all platforms. Test it. -- Felipe Monteiro de Carvalho ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Trayicon troubles
On Tue, Dec 9, 2008 at 7:03 PM, Felipe Monteiro de Carvalho I think that GetPosition isn't implemented in all platforms. Test it. Actually it is implemented for gtk2 and win32, so it should work. -- Felipe Monteiro de Carvalho ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Trayicon troubles
Felipe Monteiro de Carvalho wrote: On Tue, Dec 9, 2008 at 7:03 PM, Felipe Monteiro de Carvalho I think that GetPosition isn't implemented in all platforms. Test it. Actually it is implemented for gtk2 and win32, so it should work. I just implemented TGtk2WSCustomTrayIcon.ShowBalloonHint for gtk2 in r17771 Regards, Andrew ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Trayicon troubles
Well, your implementation doesn't work in my system (KDE 3.5), while the previous one does. Unless there is a compeling argument to use the new implementation I propose to revert to the previous one. I appreciate your effort to quick implement the feature, but it was somewhat missguided. To improve things I propose improving GetPosition for gtk2, I don't use strange bar positions, so testing is always welcome, and also improving the looks of the notifier component. -- Felipe Monteiro de Carvalho ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Trayicon troubles
Felipe Monteiro de Carvalho wrote: Well, your implementation doesn't work in my system (KDE 3.5), while the previous one does. Unless there is a compeling argument to use the new implementation I propose to revert to the previous one. I appreciate your effort to quick implement the feature, but it was somewhat missguided. To improve things I propose improving GetPosition for gtk2, I don't use strange bar positions, so testing is always welcome, and also improving the looks of the notifier component. I reverted the changes. At least it's in the history if in the future something changes. I wonder why it didn't work in kde. afaict GetPosition is working correctly here since my tray area is at the top of the screen and the balloon shows correctly(after the revert). Regards, Andrew ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Trayicon troubles
Felipe Monteiro de Carvalho wrote: Well ... this is already implemented in a cross-platform way in TCustomTrayIcon. The widgetset specific hint should only be implemented if there is a native ballon hint (my plan was to use it only for Windows XP) Any objections to my improving the current balloon a bit? I see some issues with text that is too long. Also an indicator of the time left before it closes might be nice. Regards, Andrew ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Trayicon troubles
On Tue, Dec 9, 2008 at 9:02 PM, Andrew Haines [EMAIL PROTECTED] wrote: Any objections to my improving the current balloon a bit? I see some issues with text that is too long. Also an indicator of the time left before it closes might be nice. Not at all, fell free to improve it =) I beliave it is in the unit lcl/popupnotifier.pas -- Felipe Monteiro de Carvalho ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus