-
Hey, Well I got a problem with OnMouseOver..
Using a Timer Control to see if the current mouse position is on the control takes alot of resources during the application lifetime and using SetCapture and ReleaseCapture works great but when I used it on a control with a ToolTipText, the ToolTipText doesn't appear.
So, What's the problem? Any solutions?
Anyone got a alternative OnMouseOver code?
-
Maybe you need to put Doevents in.
And most controls in vb have a MouseMove event.
-
OK, you see. I never posted any messages in a forum before..Never ever.
Because I always wanna mess around with codes until I
finally gets it or got tired and give up which I never did,
only this time.
Ok! Great! MouseMove works but for those of you who used MouseMove and Form_MouseMove to track MouseOver..telling you it's doesn't work that way. It works but if you move the mouse
really quick across the control..hmmm guess what? The Event
doesn't occur.
Like I was asking..Please, Please, Please
Anybody who knows how PLEASE post it..
[Edited by syn_bOy on 11-24-2000 at 01:45 AM]
-
Maybe you need to put DoEvents in the timer event of the timer control.
-
You know why it doesn't occur? because the mouse never moves, it jumps over it, it's that simple. Theres no way catching such events unless you calculate the line between two mouse jumps and see if it crosses any border of the button. I don't think any control does that, and you really don't need it either. At least not if the purpose is to make a coolbutton. mousemove event is fairly better than using a timer, since the timer won't fire more frequent than each 53'th millisecond.
-
OK, thanks for all your replies. Even though I don't get
many, I still appreciate it. After hours of posting on this
forum and the first message I've ever posted. I found the solution.
:: Using Timers takes alot of CPU resources during the
application lifetime.
:: Using Control_MouseMove and Form_MouseMove doesn't work
properly especially when the End-User has set the mouse
speed to fast.
:: Using SetCapture and ReleaseCapture doesn't work with
and cannot support ToolTipText.
>> Now, after messing around with my codes..
I found my own solution to my own problem..That's Funny!
I think I'll make it an OCX Control and make public release
for anyone who wants to add features such as OnMouseOver to
their application.
Well, wish you guys luck with VB.