|
-
Sep 2nd, 2006, 10:42 AM
#1
Thread Starter
Lively Member
MouseExit
I need to generate a MouseExit for my UserControl. However, my usercontrol contains multiple buttons. I tried the method with setcapture and releasecapture, but they take away focus and the buttons need to be double clicked (unacceptable), and they give no hover effect until clicked once. Now I looked into the subclassing way, but my control already implements subclassing, and I have no Idea how to integrate it. I'll post my windowproc and the one I downloaded (for tracking mouse).
-
Sep 2nd, 2006, 10:53 AM
#2
Re: MouseExit
See if this helps.
First result of this search. 
edit:
Also there is a codebank entry, http://www.vbforums.com/showthread.php?t=234469
-
Sep 2nd, 2006, 03:47 PM
#3
Thread Starter
Lively Member
Re: MouseExit
Thanks alot, but it didn't work, and I figured how to do it in subclassing.
However I now have a new problem! When I hover over the usercontrol, it's all fine and dandy, but since my usercontrol acts like a frame, it contains other controls. It should not do a mouseleave if I hover over a button within the frame. I could fix this one button at a time, but the frame is dynamic and has a dynamic number of buttons (it gets a list from the internet). Also, these buttons aren't added in the control code, but in the app code.
Can you help me detetc when a button inside the usercontrol is hovered over?
-
Sep 2nd, 2006, 04:38 PM
#4
Thread Starter
Lively Member
Re: MouseExit
Nevermind I fixed it. The solution was to check for the usercontrol's parent's mousemove event and fire a timer to wait a second then doing what i needed (timer is just incase they did it accidentally)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|