Solved

Mouseovers

Posted on 1998-08-07
2
273 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
Comment Utility
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
Comment Utility
Bought This Question.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

763 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

9 Experts available now in Live!

Get 1:1 Help Now