Recent

Author Topic: Notifications when dragging files before being dropped  (Read 398 times)

geraldholdsworth

  • Full Member
  • ***
  • Posts: 195
Notifications when dragging files before being dropped
« on: January 28, 2023, 11:16:52 am »
Hi all,

I'm wanting, in an application, to be notified about files about to be dropped over a form, before they are dropped. This is essentially so I can make it nice and pretty and highlight the control the mouse is over.

Highlighting the control is not an issue - I just use OnMouseEnter and OnMouseLeave events. But these are not fired when a file is being dragged over. In fact, not even the Form's OnMouseEnter and OnMouseLeave events are fired either.

To make things more difficult, I need to do this for macOS, Windows and Linux. Although I am writing this on macOS, with Lazarus 2.2.0.

Cheers,

Gerald.

 

TinyPortal © 2005-2018