Solved

Mouseovers

Posted on 1998-08-07
2
274 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

910 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now