Skip to Content
Former Member
Dec 21, 2012 at 02:54 PM

Toggle button for both click and mouse over events



My goal is to implement (emulate) my custom button behaviour. So, I have 3 images for my button: when button is disabled, when it is enabled, when it is focused (mouse over). My first attempt was to use toggle button. The problem is that I should catch both mouse over (and show image with focused button) and mouse click (click on the enabled button should to some action) events, and toggle button can't hook both. I tried 2 toggle buttons (the same size, the same place) but mouse events are blocked by upper button.

Any suggestions?