ymj120572092 Posted November 2, 2023 Report Share Posted November 2, 2023 Hello Everyone: I want to drag a file(with same extention) to my app front panel, I found this topic Here But now OS Open Document event just be called when double click file,not drag file into my app here is my setting in registry,please help,thanks Quote Link to comment
hooovahh Posted November 2, 2023 Report Share Posted November 2, 2023 The easiest way I've done this in the past is to have a transparent path control that takes up the whole front panel which is hidden. Then you look for the value change event on that path control which will indicate a drop took place. Here is a post with an example of this working. If you are looking to open a file type when double clicked in explorer, then you will need a second EXE to get called, and it can decide what to do. Like maybe open another instance, or detect if it is already running, and open it in that. I know this post is old but it is what I used to understand what was needed. Since then I've started using InnoSetup installers, and you can setup file association there as part of the install process. Quote Link to comment
ymj120572092 Posted November 3, 2023 Author Report Share Posted November 3, 2023 Hi hooovahh thanks reply,now app can reponse(OS Open Document event be called) when double click file,even app is running I will try the transparent path control thanks Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.