hello,
coming with Lazarus there is an example to use a TDragObject :
Lazarus/examples/dragImageListwith this example you drag a button and drop it on a target.
When i use original source code, no problem , the TDragObject moves with cursor (See DragImageList1.gif)
Now, i want to put the cursor on the center of the dragObject. To do this i use this code :
FDragImages.DragHotspot := Point(Bitmap.Width div 2, Bitmap.Height div 2);
The problem is that the TDragObject moves only when the cursor goes out of it (See DragImageList2.gif)
Another problem, you can't drop the Tdragobject.
There is no such problem on Windows.
So what is wrong ?
Friendly J.P