View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0021562||Lazarus||LCL||public||2012-03-26 10:36||2020-02-12 22:42|
|Reporter||Ryan Davis||Assigned To|
|Product Version||0.9.30.5 (SVN)||Product Build|
|Target Version||Fixed in Version|
|Summary||0021562: Bug in OnMouseMove X, Y values on Mac OS X|
|Description||When tracking X or Y values in OnMouseMove they consistently go negative when moving outside the range of a component. For example, if you tracked the X value in OnMouseMove of a TImage, when moving the mouse to the left of the TImage the X value would go negative as the cursor exited the TImage. This is often a useful value to track for implementing the start of drag/drop procedures.|
This works normally in Windows for all cases. E.g. the X or Y value will go negative while exiting a component.
This works normally in Mac for a standard window which has focus and working within a single focused window.
If working with two Windows on the Mac, the X value in OnMouseMove will not go negative when exiting the visual component space if the Window in which you are exiting did not have focus when you begin the move operation. For example, if you try to drag back and forth between two windows using OnMouseMove negative values to detect when to begin dragging, the procedure will work for whatever window currently has focus. However, if you try to drag from the window without focus (which instantly gives it focus when you click on it) to the original window the X, Y values in OnMouseMove will never go negative.
The exact same code in Windows when using two windows works fine.
|Additional Information||See above.|
|Tags||No tags attached.|
|Fixed in Revision|
I'v reported in 0020748 about an issue with drag from unfocused form, maybe it's in some way related.
Is this issue stll not resolved?
I guess it is in Carbon WS.
How does Cocoa WS behave?
|2012-03-26 10:36||Ryan Davis||New Issue|
|2012-03-26 10:36||Ryan Davis||Widgetset||=> Carbon|
|2012-05-14 16:21||Anton S.||Note Added: 0059585|
|2012-05-14 16:27||Anton S.||Note Edited: 0059585|
|2020-02-12 22:42||Bart Broersma||Status||new => feedback|
|2020-02-12 22:42||Bart Broersma||LazTarget||=> -|
|2020-02-12 22:42||Bart Broersma||Note Added: 0121066|