THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 29/12/2005 at 04:56, xxxxxxxx wrote:
Cinema 4D Version: 9.5
Platform: Windows ;
Language(s) : C++ ;
Im a beginner in Plugins development for Cinema4d in C++.
My plugin must do some actions when the user drag a point selection tag to the Attribute Manager. Can somebody give me infos on which function to use for the management of the drag and drop in the Attribute Manager? In my personal tag class derived from the TagData, is it an other function than "Message(GeListNode* node, LONG type, void* data)"?
Thanks a lot in advance,
On 29/12/2005 at 05:04, xxxxxxxx wrote:
D&D; in the AM doesn´t need to be handled by you. Cinema does this automatically. The link you can get with GetBaseLink (respectively GetObjectLink, GetMaterialLink) from the object´s basecontainer (op->GetDataInstance())
On 29/12/2005 at 05:06, xxxxxxxx wrote:
And yes, the message is MSG_DESCRIPTION_CHECKDRAGANDDROP in the Message function.
On 30/12/2005 at 07:58, xxxxxxxx wrote:
Ok, but the message MSG_DESCRIPTION_CHECKDRAGANDDROP is never returned in the Message function even if there was a drag and drop.
On 02/01/2006 at 13:54, xxxxxxxx wrote:
Which Message() function is this in? It should be sent to NodeData::Message(). Perhaps you could post a short code snippet?
On 03/01/2006 at 07:48, xxxxxxxx wrote:
In fact, I was looking for the messages from the function
Message(GeListNode* node, LONG type, void* data)
in the class MyTagData derived from the class TagData. I think that I'm not looking in the good place (i.e., in the good class). In fact, my question is rather "In which class must I wait for the message MSG_DESCRIPTION_CHECKDRAGANDDROP?"
For the moment, I circumvented the problem by implementing my plugin with a dialog box.
On 03/01/2006 at 08:22, xxxxxxxx wrote:
Hmm, I cannot check right now, but this code should work:
Bool DPInstantTree::Message(GeListNode *node, LONG type, void *t_data)
BaseObject *op = (BaseObject* )node;
BaseContainer *vdata = op->GetDataInstance();
DescriptionCheckDragAndDrop* dc = static_cast<DescriptionCheckDragAndDrop*>(t_data);
DescID di = dc->id;
//Do something :)
Hope that helps.
On 05/01/2006 at 12:28, xxxxxxxx wrote:
I will try when I will implement the plugin whitout dialog box.
Thanks again for your time.