![]() |
|
#1
|
|||
|
|||
|
I'm making a custom component, something like TImageButton. It is supposed to change image when mouse enters or leaves button. I'm catching CM_MOUSEENTER and CM_MOUSELEAVE messages to do that. Component works right, but it failes when i move the mouse too fast. Then no CM_MOUSELEAVE message will occure and I don't know, that mouse has left the button's region and component stays in wrong state. Any ideas how to fix this bug?
|
|
#2
|
|||
|
|||
|
This is a famous problem. It could be fixed only in one manner - from timer to check a mouse position and update a state of control.
In same manner work any components (Toolbar2000, for example) With best regards, Mike Shkolnik http://www.scalabium.com |
![]() |
| Thread Tools | |
| Display Modes | |
|
|