Hi, Am Donnerstag, den 19.01.2006, 23:44 -0200 schrieb Felipe Monteiro de Carvalho: > New version of the TrayIcon component. > > The SystrayIcon object is much more stable, and works very well under: > Win32, Gtk1 and Gnome. It works, but the image isn“t painted under > Gtk2, only a grey icon appears =(
Can you give me a quick overview of the architecture? I can help with the gtk2 stuff... A quick look: wsgtk2trayicon.pas procedure TWidgetTrayIcon.CreateForm(id: Integer); ... // needed because some things aparently don't get fully initialized until // visible at least once! This is Gtk related NOT LCL related. GtkForm.Visible :=True; GtkForm.Width := 22; GtkForm.Height := 22; GtkForm.Visible := False; Depending on why you do that, what you want is either "realizing" or "mapping" the window. "Realizing" means that X will create the real window (not show). "Mapping" means that X will show the window (if all it's parents are there, otherwise flags for later). I would guess you only need to realize the window (so that it has a GDK - i.e. X - drawable, for example) You could also connect to the "realize" signal to only be notified when the window is realized and save the drawable there. If anything is unclear with gtk2 stuff, just ask me :) cheers, Danny > > Documentation being constructed here: > http://wiki.lazarus.freepascal.org/index.php/TrayIcon > > thanks, > -- > Felipe Monteiro de Carvalho _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
