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?
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?
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: