Drag a custom dragdrop-fromat and drop it in Visio and create a sh

P

Patrick Lefebvre

I have a custom dragdrop format in my application.

1. I want to drag this and drop it into visio.
2. In Visio I want to catch the drop event search a master in a stencil and
create a shape

The ShapeAdded event is to late, because a cant't access the original
IDataObject to query my custom dragdrop format.
I need some of the ms dragdrop events from visio (DragEnter, DragOver,
DragDrop, DragLeave)

Is thsi posible?

Best regards
Patrick Lefebrve
 
N

Nikolay Belyh

You can obtain a master from Visio prior to begining the drag-n-drop,
and use the master it in drag-n-drop. Or you can add Visio's master as
extra format to your data.

Another option is to set some global variable prior to begining drag-n-
drop and in ShapeAdded event make a test: if it is not empty, then you
will know that it was your data dropeed. After the drag-n-drop
finished you should reset that global variable.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top