Recent

Author Topic: OnMouseEnter event not trigged if left mouse button is pressed  (Read 509 times)

simsee

  • Full Member
  • ***
  • Posts: 187
I noticed that the TControl.OnMouseEnter event is not triggered if the left mouse button is pressed while the mouse cursor enters in the control surface.  Is this expected behavior? Thanks.
« Last Edit: July 13, 2024, 04:09:32 pm by simsee »

Thaddy

  • Hero Member
  • *****
  • Posts: 15505
  • Censorship about opinions does not belong here.
Re: OnMouseEnter event not trigged if left mouse button is pressed
« Reply #1 on: July 13, 2024, 04:17:08 pm »
Yes that is expected behavior, also when the right or mid button is pressed.
That is because the mouse operates in its current context. It keeps the state of that context. Only when NO buttons are pressed mouseenter/mouseleave picks up the new context.
My great hero has found the key to the highway. Rest in peace John Mayall.
Playing: "Broken Wings" in your honour. As well as taking out some mouth organs.

 

TinyPortal © 2005-2018