Shakin 'stuff up

I have a small application here, and I wish I could do my own things in Vista / Win7 when I shake the form.

Currently, when the form is shaken, it restores / minimizes everything else. But I want to change this behavior only in my application. Therefore, when my form was trembling, I could, for example, shuffle the playlist or clear the contents of the canvas, etc.

Is it possible?

thanks

+4
source share
2 answers

Another link with a working example:

aero-shake

And yes, a pretty cool feature.

+2
source

If you request a sample code that does this, you are here:

http://www.codeproject.com/KB/dialog/aero-shake.aspx

Just replace the part that minimizes and maximizes the other windows with everything you want to do.

Personally, I think this is pretty cool, and I'm seriously trying to fight the urge to use it everywhere, now. My ideal ideal user interface has always been a form with one button on it. With a jitter, I wouldn't even need a button.

+3
source

Source: https://habr.com/ru/post/1308963/


All Articles