Solved

Mouseovers

Posted on 1998-08-07
2
277 Views
Last Modified: 2010-04-30
In VB5 (though I imagine any version of VB is the same) - how can I change a property on
a mouseover event?  For example a label that has a caption in forecolor BLACK
will be changed to a caption with forecolor WHITE when the mouse is over it - and then
goes back to forecolor BLACK when the mouse leaves.

It is easy to change it to WHITE on a mousemove event and then set a flag to stop it
happening again - but what about changing it back when the mouse leaves.
I want about 10 of these to be used as 'menu buttons' (similar to a web page
with onmouseovers).  If I use mousemove on the 'containing form' and reset ALL labels to BLACK
I get a 'flutter' across all 10 labels - even if I set some flag to make sure it only happens once per
mousemove..... I want it to work like the dragover event.....
Maybe I should change to another language that has 'mouseover' and 'mouseleave' events.

Chris
0
Comment
Question by:Upland
2 Comments
 
LVL 1

Accepted Solution

by:
Jason_Row earned 100 total points
ID: 1468218
Hi Chris,

I don't know how you have set up your code, but instead of changing all the labels back to BLACK, try checking each button to see if the label is WHITE and then switch it to BLACK. Hopefully that should decrease the flutter.

Or if you are looking for another tool, you can try Asymetrix Toolbook as it does have Mouseover, MouseEnter, and MouseLeave events. It's similar to VB but is generally used for courseware and multimedia projects.


Sincerely,
Jason

Jason Row (jason_row@scholars.com)
Learning Advisor, http://scholars.com

Microsoft Authorized Technical Education Center
Novell Authorized Online Training Provider
0
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1468219
Bought This Question.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question