How to detect when the mouse is pointing to a button

1

I have a form where certain actions will be executed only when a button btn has the mouse cursor on it, which button event do I use?

    
asked by anonymous 13.04.2018 / 06:00

1 answer

5

You can use the% Button% Event.

To use it, simply select the button you want to add the action to, and in the Properties window on the top bar click Events (the icon is a radius):

Afterthe2clicks,theIDEautomaticallycreatestheeventandyoufillinwithyouraction.

Asimpleexample:

Youcanalsocreateyourowneventanduseitrightafterthecomponentsstart(MouseHover).

seehow:

    
13.04.2018 / 09:18