On mercredi 27 août 2008, HARADA Kazutaka wrote:
> Hi,
>
> Another problem for tray icon found.
>
> With gambas2-2.8.1, I found that the picture of tray icon is not
> updated (changed) sometimes.
>
> I wrote a small project to reproduce it.
> - create new form and put a trayicon in it
> - set default picutre of trayicon (TrayIcon1.Picture="blue.png")
> - then put following code in the class
>
> PUBLIC SUB Form_Show()
>
>    SLEEP 3
>    TrayIcon1.Picture = Picture["green.png"]
>    SLEEP 3
>    TrayIcon1.Picture = Picture["yhellow.png"]
>    SLEEP 3
>    TrayIcon1.Picture = Picture["red.png"]
>
> END
>
> Then run it and wait for 10 seconds.
> Finally "red.png" picture is shown on trayicon but "green.png" and
> "yellow.png" are not.
>
> This happens both gb.qt and gb.gtk.
>
> I'm using gtk+-2.12.11 and qt-3.3.8 with gnome-2.22.3.

What happens if you replace "SLEEP" by "WAIT"?

-- 
Benoit Minisini

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to