MasterRacker
Active member
Here's the scenario: Let's say I want my app to play a "click" noise every time a button is clicked. I'm thinking the proper way to do this would be to create a user control (call it "NoisyButton"). I'm thinking that a NoisyButton plays it's sound on a MouseDown event, which which would leave the Click event free for use everywhere in the app, that I put a NoisyButton.
My question is: what's the best way to retrofit this into an existing app? Is there a way to globally trap all click events, determine if it came from a button, play the sound and return where you came from? Or do I need to go through the app and replace all buttons with a NoisyButton? Other options?
Jeff
[purple]It's never too early to begin preparing for [/purple]International Talk Like a Pirate Day
"The software I buy sucks, The software I write sucks. It's time to give up and have a beer..." - Me
My question is: what's the best way to retrofit this into an existing app? Is there a way to globally trap all click events, determine if it came from a button, play the sound and return where you came from? Or do I need to go through the app and replace all buttons with a NoisyButton? Other options?
Jeff
[purple]It's never too early to begin preparing for [/purple]International Talk Like a Pirate Day
"The software I buy sucks, The software I write sucks. It's time to give up and have a beer..." - Me