Page 2 of 2
Re: pb-win-notify
Posted: Tue Dec 15, 2015 8:09 am
by Poshu
You should rather thanks deseven :p
Re: pb-win-notify
Posted: Tue Dec 15, 2015 8:37 am
by deseven
That's how github works, everyone can fork anything and improve it the way he likes

Re: pb-win-notify
Posted: Wed Dec 16, 2015 11:34 pm
by deseven
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
Re: pb-win-notify
Posted: Thu Dec 17, 2015 5:42 am
by fromVB
deseven wrote:My attempt to create a notification system.
Thanks deseven. Great code!
One question: what is CreateMutex used for in your code?

Re: pb-win-notify
Posted: Thu Dec 17, 2015 12:13 pm
by deseven
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.