- 4,728
- ferrari_chris
I've run into a little problem with an app that I'm building that I can't find a fix for. It's not a problem that will stop it from working in any way, just a design thing I want to get cleared up.
Here's the problem:
I've put an image on my button. When you click the button, the button moves down and to the right. To make the image move too, I replace the original with a new image 1px lower and 1px to the right. This works well, and looks like factory. 👍
The problem starts when the user holds the mouse button down, but rolls off the button. The button rises back to it's unclicked position, but the image stays down. 👎
Is there any way to get the image to revert to the original and move with the button?
I've attached both the code (ButtonTestCode) and a simple exe file (ButtonTestExe) so you can see exactly what is happening.
Try first clicking the button to see the image move, then while holding the mouse button move the pointer off the button and see how the image stays down.
Any help is greatly appreciated.
Here's the problem:
I've put an image on my button. When you click the button, the button moves down and to the right. To make the image move too, I replace the original with a new image 1px lower and 1px to the right. This works well, and looks like factory. 👍
The problem starts when the user holds the mouse button down, but rolls off the button. The button rises back to it's unclicked position, but the image stays down. 👎
Is there any way to get the image to revert to the original and move with the button?
I've attached both the code (ButtonTestCode) and a simple exe file (ButtonTestExe) so you can see exactly what is happening.
Try first clicking the button to see the image move, then while holding the mouse button move the pointer off the button and see how the image stays down.
Any help is greatly appreciated.