Page 1 of 2

pb-win-notify

Posted: Thu Jul 30, 2015 5:20 pm
by deseven
My attempt to create a notification system.
Windows-only, as it's the only OS which doesn't have anything like that out of the box (at least before Windows 10).
I tried to keep it as simple and lightweight as possible.

screenshot
github
direct download

Feel free to contribute.

Re: pb-win-notify

Posted: Mon Aug 03, 2015 10:42 am
by Kwai chang caine
Nice and good idea, thanks for sharing 8)

Re: pb-win-notify

Posted: Mon Aug 10, 2015 7:09 pm
by aaaaaaaargh
Cool , thanks for sharing this! :D

Re: pb-win-notify

Posted: Mon Aug 10, 2015 8:54 pm
by falsam
Thanks for sharing. I will follow this project. Add to Pure Basic Francophone community.

Re: pb-win-notify

Posted: Mon Aug 10, 2015 11:54 pm
by IdeasVacuum
Looks good! :mrgreen:

Replace SetWindowLong_ with SetWindowLongPtr_ (etc)

PB Blog Sept 2008 re 32bit v 64bit

Re: pb-win-notify

Posted: Tue Aug 11, 2015 10:13 am
by Little John
IdeasVacuum wrote:Replace SetWindowLong_ with SetWindowLongPtr_ (etc)

PB Blog Sept 2008 re 32bit v 64bit
Thanks for reminding me/us!

Re: pb-win-notify

Posted: Thu Aug 13, 2015 4:18 pm
by deseven
IdeasVacuum wrote:Replace SetWindowLong_ with SetWindowLongPtr_ (etc)
Thanks, fixed in rev.2
falsam wrote:Add to Pure Basic Francophone community.
Sorry, i don't use g+, if you want you can write the post yourself.
EDIT: ah, i see, you've already did that, ok then :)

Thanks for all kind words, hope someone will find it useful :)

Re: pb-win-notify

Posted: Tue Aug 25, 2015 10:12 pm
by deseven
Updated styling to look more like W10 notifications:

Image

Re: pb-win-notify

Posted: Wed Aug 26, 2015 12:53 pm
by Kwai chang caine
Works great, thanks :wink:

Re: pb-win-notify

Posted: Sat Aug 29, 2015 11:46 am
by falsam
Thanks deseven. I really like.

Re: pb-win-notify

Posted: Sun Aug 30, 2015 3:53 am
by deseven
Thanks guys :)

Well, in revisions 4 & 5 i implemented onClick support. It means that now you're able to perform some actions when user clicked on the notification (simply close it or run some program, etc).

Other important stuff:
- notifications can be forced to stay forever if needed
- tunable constants in the main include file, so you can disable or enable animations or alter their times
- latter notifications will take place of the expired or closed ones (some sort of a queue)

And, of course, there are 2 new examples to help with all that new functionality.

That's it i think, i can't imagine anything else to implement.

Re: pb-win-notify

Posted: Sat Sep 26, 2015 5:51 pm
by deseven
Turned out that i still have things to do :)

In revisions 6-9 i improved notifications queue (notifications which don't have free space on the screen will be showed later), added support for the latest PB 5.40, reworked notification display and animation algorithms, should be faster and flicker-free now.
Also, the usage is simplified, no more CreateThread() calls.

There are, however, some changes in the constants. So if you used older revisions you should double-check that.

Re: pb-win-notify

Posted: Sat Dec 12, 2015 4:07 am
by Poshu
This is a REALLY nice piece of code, I used it in my last project, thanks!

Re: pb-win-notify

Posted: Mon Dec 14, 2015 7:03 pm
by Poshu
I'm trying to learn to use git, and I thought it was a good idea to publish my changes on this projet:
_ module format
_ Notifications can be placed anywhere on the screen (it's a bit of an hack to keep the general api the same, see example-advanced.pb) :
Image

My fork : https://github.com/poshu/pb-win-notify/
And my pull request https://github.com/deseven/pb-win-notify/pulls

Re: pb-win-notify

Posted: Tue Dec 15, 2015 7:51 am
by bbanelli
@Poshu

Wow, this is really great piece of work, thank you so much!