Closed LihemdiRachid closed 1 year ago
I noticed that it's different depending on the GetDataOnEnter property. If False, the correct path is returned, if True, the parent folder's path is returned. And this has the same impact on TDropFileTarget and TDropPIDLTarget. On the examples in the previous post, DragDropUnicode had GetDataOnEnter = False. If swithed, the same symptom appears
Got it! It's not a bug at all. It's because at DragEnter, 7-zip doesn't have extracted the file yet. 7-zip extracts the file at Drop. So GetDataOnEnter can't work fine with 7-zip
The same scenario with TDropFileTarget returns the path of the item.
below picture shows the full path of the dragged item with TDropFileTarget (Demo project "DragDropUnicode")
this second picture shows the issue with TDropPIDLTarget (Demo project "PIDLDemo"), it dropped the parent folder and the file is inside it (the name of the folder differs, being a new drag drop session)