How to ungroup shape through Automation without getting a Message

M

MFishbey

I am developing a graphical editor based on the Visio Active X control. For one of the editors' features, I need to drop a Master on a document and ungroup it through automation. The problem is that no matter what method I am using to ungroup the shape, the user sees the message: “This action will sever the object’s link to its masterâ€. I tested the Shape.Ungroup() and Window.DoCmd(VisUICmds.visCmdObjectUngroup) methods. My attempts to get the QC_Ungroup event failed from automation. I was able only to get the event when I ungrouped shape from the UI. Does anybody have any suggestions on how I can get rid of this dialog?
 
M

Mark Nelson [MS]

Check out Application.AlertResponse.

--
Mark Nelson
Microsoft Corporation

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


MFishbey said:
I am developing a graphical editor based on the Visio Active X control.
For one of the editors' features, I need to drop a Master on a document and
ungroup it through automation. The problem is that no matter what method I
am using to ungroup the shape, the user sees the message: "This action will
sever the object's link to its master". I tested the Shape.Ungroup() and
Window.DoCmd(VisUICmds.visCmdObjectUngroup) methods. My attempts to get the
QC_Ungroup event failed from automation. I was able only to get the event
when I ungrouped shape from the UI. Does anybody have any suggestions on
how I can get rid of this dialog?
 

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