How can determine which kind of object was dropped on the map

Tom R. shared this question 51 days ago
Discussion Open

In my add-in, I want to use hyperlinks. If I copy Objects from our application and paste them into a topic, a hyperlink is created.

6f9272d4c4c49ef8c8f67d3b13cfab82
Dropping Objects should do the same. The Problem is I can not determine the object that was dropped. Am I missing something or do I make something wrong?
I have an event declared
16840f8c2da87e29c7f45fe06d6f5573
This event is initialized as follows.

a78397cb85c027781713bf17c89c4a39

After debugging the event fire method

863448732b9dc39296f43be870f1ec09

psource is from Type document and pExtra is from type Int. But with both of these information, i can not get the dropped object.

Replies (1)

photo
1

Since it is the "after" event, I would assume that the drop action has already been completed, although I might be wrong about that. (If it was the "before" event then maybe there is information about the dragged object and the opportunity to handle the drop event and cancel MindManager's handling).

If the object has already been dropped, one way to identify it would be to use the before and after topic modified events, and work out what has changed. It could be a marker, a link, an image, topic notes, an attachment, subtopics and maybe more.

photo
1

Your thought seems correct.
Unfortunately, I have not found a solution til now.
While testing and debugging I found out that there is a special class for MindManager Windows.
9789450e1d66e9b2a8d157ae5923d9c4

406b6915bdc7df33d5e59ba7c4824d4c

c09cc32b58c5753d62e51a6a8ba9ff2a

The classname for the activeframehwnd is MindManager23WndClass. It seems like this class is not derived from the System.Windows.Forms.Form object. I could not find any information about it, do you have some information?


And one other question:

If you drop an e-mail from Outlook into MindManager there is a topic created that has an extra icon and extra information. How can you do that?

aa183944a50658163812c4b22bc83f29

photo
Leave a Comment
 
Attach a file