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?
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.
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.
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.