[RESOLVED]Hovering over a button.
Hey guys,
I am trying to make a program where i am using "sapi" and i want to know how i can make sapi read the button text when the button is hovered over. I have been looking around all day and wondering if anyone could help.
Thanks in advance,
Th3man
Re: Hovering over a button.
I'm not sure what "sapi" is, but just read the text of the button, "Button1.Text" in the button's MouseEnter event.
Re: Hovering over a button.
Well not to annoy you but can you show me an example
Re: Hovering over a button.
You won't learn as well if you don't do it on your own.
And event is essentially a "listener." They're made to execute what ever task you tell it to when it "hears" a specific action.
So, if I told you to jump every time "x" occurred, jumping would be our event. In this case, you want the button to listen to the mouse entering its bounds.
If you click on the button and open the properties panel, located (usually) on the right of the screen, you'll see a lightning bolt near the top of that panel. If you click on it, you'll see every event that this button has. Scroll down to MouseEnter and double click on it. That will open the code window and create the MouseEnter event for you.
Now, any code you write within this event, will be triggered when the mouse cursor enters the bounds of the button. Try out something simple to see how it works. Just write a messagebox and show "Hello world" or "It works!" or something.
Re: Hovering over a button.
Lol okay thanks, Thanks for explain it and not showing me now i learned how to do it :D