I've had a look for the answer to this but can't find the answer but I'm sure this has been asked before.
I have 8 buttons on a form. I have Mouse Enter and Mouse Leave actions that I want to implement for the buttons. The background colour and font size change so that the buttons have a slightly more dynamic behviour. I don't want to write 16 routines (2 for each button) and know there is an easier way to just reference that if the mouse enters the button area to do the required changes just for that button (same for Mouse leaving).
I did the typical noob thing and got all 8 to change due to having added the handler to all buttons.
How can i just get one button (the one the mouse enters/leaves) to do the action without them all doing it and not write out the code over and over again?
Stim.


Reply With Quote








