> I think the best solution here is not to copy or work on top of them,
> but to implement our own notification system. I think that a small,
> borderless LCL Window could do the trick. We can add some methods on
> TTrayIcon to interact with this window.
You may well be right, although I have no idea how to do a borderless window.
My catch is I need this for a project due end of the month - so I'll help you 
anyway I can :)
>
> Here is a list of things we might want in out notification system:
>
> * text
> * popup title
> * icon (picture)
> * time until the notification expires (add possibility to never
> expire?). Add a possibility to link this to hint expire time?
> * a X button to close the notification
KDE just closes on click or after a timeout - no need for an X.
What I would suggest would be the coolest however is to make our window a 
derivative of TIPiPRO htmlpanel. 
That way, you can use html to format the messages, embed pix, embed links 
whatever. 
Then just add an onclick so if you click outside any hotclicks, the 
messagewindow is close before the timeout.
>
> The appearance is another question. Simple rectangle is the most obvious.
I wouldn't bother with much else right now, rounded windows may look pretty 
but they are very hard to do without relying on stuff like X composite 
extensions.
>
> Some way to change the appearance could be good. Since I´m thinking of
> using a TForm for this, we could just give the TForm for the user and
> let it play with it to create better looking notifications.
That might well be the best approach - that way he can embed what HE needs, be 
it an html panel or timage.
>
> > A bigger issue for me right now is that it no longer works with GTK2 - it
> > causes an instant segfault - oddly the backtrace shows it's calling on
> > the GTK1 units !
> > I don't know why it would be linking they tray icon against gtk1 if my
> > app is being linked to gtk2 - possibly because I run lazarus in gtk1, but
> > I cannot test this theory since the current lazarus builds segfault in
> > gtk2
>
> No, this isn´t the cause. I just noticed this too. Until recently my
> gtk1 Lazarus was correctly compiling TTrayIcon for Gtk2. Maybe Gtk2
> define changed? I am not on Linux now, but latter I will take a look.
Thanks
It would be nicer to have wole done in GTK2, but that is not urgent, I don't  
need gtk2 for developing it.

Ciao
A.J.

-- 
"there's nothing as inspirational for a hacker as a cat obscuring a bug 
by sitting in front of the monitor" - Boudewijn Rempt
A.J. Venter
Chief Software Architect
OpenLab International
www.getopenlab.com
www.silentcoder.co.za
+27 82 726 5103

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to