VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Mouse Enter/Exit for all controls (including those without handles)

by Phobos (6 Submissions)
Category: Coding Standards
Compatability: VB Script
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (5 Votes)

This program improves on the work presented by Evan Toder regarding the capture of Mouse Enter and Exit events.
This version will capture events from all controls on a form - including those without hwnd properties (such as labels, images etc).
The program can also handle control arrays, and controls that are nested in containers.
You also have the ability to choose which controls have their mouse enter/exit events reported. Mousewheel events have also been added.

Assumes
In order for monitoring to take place you must put a "Skinned" label in the control's tag field.
Code Returns
MouseEnter, MouseExit, MouseWheelUp and MouseWheelDown Events are generated.
Side Effects
This program uses subclassing so care should be taken in how it's applied. If you don't like subclassing the program is easily modifield to using a timer field.

Rate Mouse Enter/Exit for all controls (including those without handles)

Download Mouse Enter/Exit for all controls (including those without handles)

Download Mouse Enter/Exit for all controls (including those without handles) (18 KB)

Mouse Enter/Exit for all controls (including those without handles) Comments

No comments have been posted about Mouse Enter/Exit for all controls (including those without handles). Why not be the first to post a comment about Mouse Enter/Exit for all controls (including those without handles).

Post your comment

Subject:
Message:
0/1000 characters