File drag and drop
Posted: Fri Dec 24, 2021 4:35 pm
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?
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?