Solved

Mouseovers

Posted on 1998-08-07
2
280 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
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…

729 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