Start a new topic

API Access to Windows Drag & Drop

Original Post by: Thu Mar 24 15:57:32 2016

Can we access and take over drag & drop behavior? For example, if I drag & drop a file texture into Creator, it will create a new texture palette entry for it. I'd like to hijack that process and do other things with that dropped texture.

Is this possible?

Original Post by: SteveThompson Thu Mar 24 16:52:41 2016

Sorry there are no hooks currently in Creator (via the OpenFlight API) to enable 3rd parties to change this drag and drop behavior. Not a bad idea to consider but nothing in now to help you.

You could of course make your own window, implement D & D for it and do your custom processing there.

Original Post by: ChrisRogers Thu Mar 24 17:24:05 2016

As Steve mentioned, we do not provide access to the drag and drop interface. However, from your description, there might be another way to accomplish what you want. What we do support is notifications on changes. Your plugin can register a callback that will be triggered when a specific event occurs. In particular, you may be interested in the texture pallet changed notifier:


Texture Palette Changed notifier event. This is sent whenever a texture palette entry is changed in Creator.

Applicable to viewer and editor tools only.

You might be able to use this to tell you when a texture was added to the palette (through drag and drop or file open etc...)

This might give you the information you need to find the texture that was added and do the processing you want.

Original Post by: Thu Mar 24 17:34:19 2016

Thanks for the quick replies. I'll have to give it some more thought. I don't think the texture palette callback would work in my case.

Login to post a comment