THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 29/04/2004 at 01:46, xxxxxxxx wrote:
Cinema 4D Version: 8.207
Platform: Windows ;
Language(s) : C++ ;
What we have: A dialog with a tree, each tree item is a struct, one of the structs attributes is a pointer to a material
What we want to do: If we take a tree item and put it on an object with dragndrop, we want the material belonging to the tree node to be dropped on the object.
GetDragType: Ok, this one is called it I start a drag. Dragtype should be DRAGTYPE_BROWSER_MATERIAL in our case. But if I do the drop, I get an access violation. I even understand this, I say the type is material, but the data that is dropped to the object surely is just the treenode, and not the material. How do I set the material to be the drop data? obj is a pointer to the tree object...but what is user data?
SetDragObject: This one did sound good, set the drag object to obj. I thought, well with this one I can have influence on what is to be dropped...gut the function is never called.
How to solve our problem? And what is SetDragObject for?