View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0038325||Lazarus||LCL||public||2021-01-07 00:43||2021-01-07 17:36|
|Summary||0038325: OnMouseEnter and OnMouseLeave not firing on spinbuttons of T(Float)SpinEdit(Ex)|
|Description||Moving 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 Reproduce||Run 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 Information||Tested on Win 10 with Laz trunk / Laz 2.0.10 / Laz 2.0.8, FPC trunk /3.2 / 3.0.4, 32/64 bit.|
|Tags||No tags attached.|
|Fixed in Revision|
38325 - MouseEnterLeave SpinEdit.zip (1,992 bytes)
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).
||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.|
|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 SpinEdit.zip|
|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|