|
-
Jan 23rd, 2011, 02:41 PM
#1
Thread Starter
Junior Member
[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
Last edited by Th3man; Jan 23rd, 2011 at 03:09 PM.
-
Jan 23rd, 2011, 02:44 PM
#2
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.
CodeBank contributions: Process Manager, Temp File Cleaner
 Originally Posted by SJWhiteley
"game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....
-
Jan 23rd, 2011, 02:51 PM
#3
Thread Starter
Junior Member
Re: Hovering over a button.
Well not to annoy you but can you show me an example
-
Jan 23rd, 2011, 02:57 PM
#4
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.
CodeBank contributions: Process Manager, Temp File Cleaner
 Originally Posted by SJWhiteley
"game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....
-
Jan 23rd, 2011, 03:00 PM
#5
Thread Starter
Junior Member
Re: Hovering over a button.
Lol okay thanks, Thanks for explain it and not showing me now i learned how to do it
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|