View Issue Details

IDProjectCategoryView StatusLast Update
0038325LazarusLCLpublic2021-01-07 17:36
Reporterwp Assigned To 
Status newResolutionopen 
Summary0038325: OnMouseEnter and OnMouseLeave not firing on spinbuttons of T(Float)SpinEdit(Ex)
DescriptionMoving the mouse over the spinbuttons of TSpinEdit, TFloatSpinEdit, TSpinEditEx and TFloatSpinEditEx I noticed that the OnMouseEnter and OnMouseLeave events are not fired. They fire only on the Edit part of the components.

The events do fire, though, on an isolated TUpdown (on Laz trunk only, related report).
Steps To ReproduceRun attached demo which displays a message for the OnMouseEnter/OnMouseLeave events for these controls. Notice that the displayed message does not update when the mouse is moved from the form onto or out of the spinbuttons of the (Float)SpinEdit(Ex) controls.
Additional InformationTested on Win 10 with Laz trunk / Laz 2.0.10 / Laz 2.0.8, FPC trunk /3.2 / 3.0.4, 32/64 bit.
TagsNo tags attached.
Fixed in Revision
Attached Files


related to 0038101 resolvedBart Broersma TUpDown MouseEnter and MouseLeave events are not fired when the mouse cursor is over component buttons 



2021-01-07 00:45

developer   ~0128135

Bart Broersma

2021-01-07 17:19

developer   ~0128145

Since T(Float)SpinEditEx does not have a counter part in Delphi (so D compatibility is no issue), I tend to NOT fix that for these components.
You would have to internally use the TUpDown.OnMouseEnter/Leave events, but these ATM can be assigned by a user for different purposes, so that would break that (and inspire new bugreports).


2021-01-07 17:36

developer   ~0128146

Delphi's TSpinEdit does not have OnMouseEnter/OnMouseLeave either, and they do not have TFloatSpinEdit. So, from the viewpoint of Delphi compatbility we can close this as "No change required" or "Won't change". I do NOT think that the OnMouseEnter/Leave events should be removed since they do work well over the edit box. Maybe we should add a sentence to the docs saying that these events fire only over the edit, not over the up/down.

Issue History

Date Modified Username Field Change
2021-01-07 00:43 wp New Issue
2021-01-07 00:45 wp Note Added: 0128135
2021-01-07 00:45 wp File Added: 38325 - MouseEnterLeave
2021-01-07 00:50 wp Relationship added related to 0038101
2021-01-07 00:57 wp Description Updated View Revisions
2021-01-07 00:57 wp Additional Information Updated View Revisions
2021-01-07 00:57 wp LazTarget => -
2021-01-07 17:19 Bart Broersma Note Added: 0128145
2021-01-07 17:36 wp Note Added: 0128146