Drag/Drop onto ActiveX drawing control

D

Dave Taylor

I have a TreeView control which I'd like to drag nodes and drop them onto
the Visio ActiveX Drawing Control in VB.NET. The data being sent from the
node is a filename to load into the drawing control. But I dont see where
the ActiveX drawing control will respond to drag/drop events. Is this not
possible?

Thanks

Dave Taylor
 
M

Markus Breugst

Hi Dave,

I did not work with the drawing control up to now, but in "normal" Visio we
solve this drag/drop issue with the "ShapeAdded" event which is also fired
if you drag data from another application into Visio.

Best regards,
Markus
 
M

Mai-lan

Hi, there: Markus is right, this is the same approach to take with the Visio
control. The Visio control itself does not have its own events, it exposes
the event model from the Visio application. Note that there is no drag event
for Visio, it's just drop.

Thanks,
Mai-lan

Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.
 
J

Jeff Bennett

Odd but as I see from other replies it seems that the ActiveX drawing
and Visio controls don't have drop events.

OK would you prefer a drawing control that does offer drag and drop
events?

Our MetaDraw control does support this.
It is possible to drag from a TreeView control into MetaDraw.
You may also want to consider replacing TreeView as well with the more
full functioned TList control.
In this case you could drag file names to load up in MetaDraw, or
perhaps even have images in TList which you'll drag into MetaDraw.
Details about both MetaDraw and TList are available at
www.Bennet-Tec.Com


As I don't check this newsgroup often, please
reply by e-mail if you are interested in MetaDraw or TList.
Let me know if you receive this note,
and if you are interested in further information.
I would be happy to send details, answer any questions

PS - I'd be happy to send you a sample .NET project showing
dragging from TList into MetaDraw. Tell me about your overall
project requirements and I can help point you to MetaDraw and/or
TList features which may be useful to you as well as let you know
quickly if there are any requirements we can't directly meet.

* * Please include a copy of this note with your reply

Jeff Bennett
(e-mail address removed)

Bennet-Tec Information Systems, Inc
50 Jericho Tpk, Jericho, NY 11753
Phone 516 997 5596, Fax - 5597
WWW.Bennet-Tec.Com

RELIABLE Component Software
and Software Development Services
* TList/Pro * ALLText HT/Pro * MetaDraw *

====================== ======================
 
S

soso

Visio.Document does. Everywhere where you can find it (for example at
VisioCtrl.Window.ActiveDocument) you can call its Drop() method.

Thank you,
soso.
 
M

Mai-lan [MS]

We've got the Drop events, it's Drag events that we don't support.

Mai-lan
Microsoft Corporation
 

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