Hi,

Am Donnerstag, den 18.08.2005, 08:21 +0300 schrieb Razvan Adrian Bogdan:
> On 8/18/05, Marc Weustink <[EMAIL PROTECTED]> wrote:
> > Bogusław Brandys wrote:
> > > Razvan Adrian Bogdan wrote:
> > >
> > >>On 8/12/05, SALVATORE COPPOLA <[EMAIL PROTECTED]> wrote:
> > >>
> > >>
> > >>>Take a look at the Lazarus Forum,
> > >>>http://www.lazarus.freepascal.org/index.php?name=PNphpBB2&file=viewtopic&t=891
> > >>>you will find a way (tanks to Razvan and others) to get the TrayIcon 
> > >>>under
> > >>>Win32. Don't expect ready to use TTrayIcon components but a way to get it
> > >>>works excellent.
> > >>
> > >>
> > >>I have worked on a tray component and i stopped due to lack of time
> > >>and some problems, but i have partially working code and i will
> > >>continue to work on it, the biggest problem is still making a
> > >>transparent HICON, i always get a black background and i suspect a bug
> > >>in graphics, until this will be solved i will add some property to
> > >>load from file and/or resource.
> > >>
> > >>Razvan
> > >
> > >
> > > There is possiblity to create also tray icon application for Gnome and
> > > KDE if I good remember.wxWidgets C++ GUI framework has such control for
> > > example (in that case it is Windows/Linux compatible solution)
> > 
> > Can you give a pointer to the piece of code which does this trick ?
> 
> There are 2 tray comps in the CCR, i think from drewski, for X and
> GTK, making a crossplatform version shouldn't be so hard if i can find
> a nice workaround for the win32 issues, some win32 behaviour could be
> added to linux too, things like baloon hints snd such.

Be careful. Trayicon stuff is being phased out (i.e. removed) currently
by gnome. It will be replaced by a notification dbus session service.
Exposing an implementation detail ("a widget that is in the system
tray") was never a good idea to begin with and now will be rectified.

I just want to make sure that however reads that knows that what you
would be doing is waste time with getting tray icons to work/extending
them on gnome, when the systray which actually shows them will soon
vanish (it already is disabled by default)

So at least dont play around with adding balloon hints to tray icons and
such, because they will be replaced by something totally different.

The new way is that you ask the notification service to display a
notification of a certain kind and urgency and text (and icon) and it
will queue it, and show it when appropriate. (i.e. the client
application does not have to care about presentation, timing,
blinking/highlighting, whatever anymore)

like 
  session := get_user_session();
  s :=
session.get_service('org.freedesktop.whateveritiscalledNotification');
  id := s.add_notification(Info, 'Your server is burning');

Plus, having trayicons as normal widgets in G* leads people to abusing
the systray for stuff other than urgent notifications, see ms windows.
Over there everything and their brother has a trayicon, even the instant
messenger has one, for some weird reason.

Soon we'd see "important" music player icons in the systray and whatnot
(that "notify" you of the currently playing track, ugh :))

> Razvan
> 

cheers,
   Danny

-- 
www.keyserver.net key id A334AEA6

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to