Animate Icon in the system tray

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by pusztry.

Is there a way to animate an icon that you put in the system tray.

IE.Win2k/XP Taskmanagers Icon goes up and down based on CPU Usage.
Thanks


- Ryan


WinXP, PIII 800 MHz, 512MB RAM, SB Live 5.1, NVidia TNT 2 Ultra
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Danilo.

Use ChangeSysTrayIcon(#SysTrayIcon, ImageID).

cya,
...Danilo


(registered PureBasic user)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by pusztry.

So I need to have 15 different icons as the cpu useage goes up and down? I was thinking that there was a way to dynamicly use a verical progressbar or something slick like that

- Ryan


WinXP, PIII 800 MHz, 512MB RAM, SB Live 5.1, NVidia TNT 2 Ultra
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Danilo.

> So I need to have 15 different icons as the cpu useage
> goes up and down?

Yes. Is it a Problem ??

> I was thinking that there was a way to dynamicly
> use a verical progressbar or something slick like that

The SysTray is only made for Icons -
it is the clean way and the rules are
made by Microsoft.

cya,
...Danilo

(registered PureBasic user)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by pusztry.

>Yes. Is it a Problem ??
No I just thought it was a bit easier than that.

I was looking at your cpumonitor examples (example #3) and the way you do your monitor is what I imagined it to be like for the systray. Oh well I will see about making a bunch of icons.

- Ryan


WinXP, PIII 800 MHz, 512MB RAM, SB Live 5.1, NVidia TNT 2 Ultra
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tranquil.

Why not calculating your icon in realtime eg in a thread. So you do not need to include thousend of icons where the progressbar is growing up. Just as an idea.

Mike

Tranquilizer/ Secretly!
http://www.secretly.de
Registred PureBasic User
System: Windows 2000 Server, 512 MB Ram, GeForce4200 TI 128 MB DDR, Hercules Theater 6.1 DTS Sound
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by pusztry.

That sounds like a great idea. I am new do you have any quick ideas how to draw an icon?
Thanks

- Ryan


WinXP, PIII 800 MHz, 512MB RAM, SB Live 5.1, NVidia TNT 2 Ultra
Post Reply