File drag and drop

Post Reply
ColinP
Posts: 1000
Joined: Mon Aug 03, 2020 7:46 pm

File drag and drop

Post by ColinP »

I'm wanting to allow users to drag and drop a file on to a particular component of a module.

I quickly figured out how to do a generic file drop on the whole module using just RegisterFileTypesForFileDrop() and the File_Dropped event but want more fine control.

I had hoped that on receiving a File_Dropped event the Notify() component parameter would refer to the component the file is dropped on or that the x or y parameter were of use but apparently not (even when the component has Wants Mouse Notifications set).

I then looked at the next most obvious course of handling an Object_LeftButtonUp event just before or after the File_Dropped event but one isn't sent.

Does anyone have a solution to this problem as it seems like pretty basic functionality?
Post Reply

Return to “Module Designer”