[lazarus] Speedbutton questions

Marc Weustink Marc.Weustink at cuperus.nl
Thu Mar 16 10:57:57 EST 2000


+ From: Shane Miller [mailto:SMiller1 at stvgb.org]
+
+ That's the idea but the problem occurs here :
+ The speedbutton only get's messages while the mouse is within
+ it's clientrect so once it leaves the rect I no longer send
+ it messages.  Should I remember what control it's in and when
+ that changes send a CM_MOUSELEAVE to the last control?

Keep track of the current (mouse)eventcontrol, when you get a (mouse)event
and GetControlForEvent (or something like that) <> (mouse)eventcontrol send
a CM_MOUSELEAVE


+ Should I send that message when the mouse X = Left or X =
+ Left+Width or Y = Top or Y = Top+Height so it occurs when the
+ mouse gets to the control's edge?

There is a change that the mouse left your control without hitting the
borders, so this won't work.

Marc






More information about the Lazarus mailing list