Solved

Mouseovers

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

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…
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 …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

809 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