Shakin' things up
-
03-10-2019 - |
Question
I have a little app here, and I would love to be able to do my own stuff in Vista/Win7 when I shake the form.
Currently, when a form is shaken, it will restore/minimize everything else. But I want to change that behavior in my app only. So when my form is shaken, I could, for example, shuffle the playlist, or Clear the contents of a Canvas etc...
Is this possible?
Thank you
Solution
OTHER TIPS
If you're asking for a code sample that does this, here you go:
http://www.codeproject.com/KB/dialog/aero-shake.aspx
Just replace the part that minimizes and maximizes other windows with whatever else you want to do.
Personally, I think this is pretty cool, and I'm seriously trying to fight the urge to use this everywhere, now. My ideal of the perfect user interface has always been a form with just one button on it. With shaking, I wouldn't even need the button.