pb-win-notify
Re: pb-win-notify
You should rather thanks deseven :p
Re: pb-win-notify
That's how github works, everyone can fork anything and improve it the way he likes 

Re: pb-win-notify
So.
I've incorporated everything Poshu suggested (thanks!) and also added some new features.
You can now change the width of the notification and create your own custom notification.

More on that in the new example, example-custom.pb
I've incorporated everything Poshu suggested (thanks!) and also added some new features.
You can now change the width of the notification and create your own custom notification.

More on that in the new example, example-custom.pb
Re: pb-win-notify
Thanks deseven. Great code!deseven wrote:My attempt to create a notification system.
One question: what is CreateMutex used for in your code?

Re: pb-win-notify
When you spawn a notification it actually happens in a different thread to speed things up. All animations and control also happen in another thread. But all those threads use one specific LinkedList called wnNotifications(), where notifications and their parameters are stored. To work with it simultaneously i use that mutex.
That approach is a bit complicated, but that's the best way i found.
That approach is a bit complicated, but that's the best way i found.