Remove HyperLink Event?

A

AdamB

Does anyone know an event I can capture for when a hyperlink is removed from
a shape?

Or for that matter, any time a row is removed? I couldn't find that either,
but thought that must be there somewhere.

The evtMod + evtCell doesn't seem to catch it...I've gone through all the
events on MSDN and haven't found one that gets raised when a hyperlink is
removed.
 
C

Chris Roth [Visio MVP]

Hi Adam,

The event monitor only shows "insert hyperlink"

3882 >EnterScope Insert Hyperlinks [1585;0;Insert Hyperlinks;1312228]
3885 <ExitScope Insert Hyperlinks [1585;0;Insert Hyperlinks;1312228]

Have you tried evtCell + evtDelete? Or perhaps row delete?

Inside of the ShapeSheet, the removal of a hyperlink will coincide with
a row deletion in the hyperlink section.

You can look for a cell that has: Section =
Visio.VisSectionIndices.visSectionObject.

I haven't done this for awhile, so I'm not sure how much info you get
about deleted cells (since they're gone!), and I don't know if you can
get a before-delete event.

--
Hope this helps,

Chris Roth
Visio MVP


Visio Guy: Smart Graphics for Visual People

Articles: http://www.visguy.com
Shapes: http://www.visguy.com/shapes
Dev: http://www.visguy.com/category/development/
Forum: http://www.viguy.com/vgforum
 
A

AdamB

Hi Chris,

Thanks for the reply. There is no visEvtDel + visEvtCell that I am aware of.
I'm unable to find any reference in the SDK for catching a Row Delete event
either.

Any ideas?

Thanks,
Adam

Chris Roth said:
Hi Adam,

The event monitor only shows "insert hyperlink"

3882 >EnterScope Insert Hyperlinks [1585;0;Insert Hyperlinks;1312228]
3885 <ExitScope Insert Hyperlinks [1585;0;Insert Hyperlinks;1312228]

Have you tried evtCell + evtDelete? Or perhaps row delete?

Inside of the ShapeSheet, the removal of a hyperlink will coincide with
a row deletion in the hyperlink section.

You can look for a cell that has: Section =
Visio.VisSectionIndices.visSectionObject.

I haven't done this for awhile, so I'm not sure how much info you get
about deleted cells (since they're gone!), and I don't know if you can
get a before-delete event.

--
Hope this helps,

Chris Roth
Visio MVP


Visio Guy: Smart Graphics for Visual People

Articles: http://www.visguy.com
Shapes: http://www.visguy.com/shapes
Dev: http://www.visguy.com/category/development/
Forum: http://www.viguy.com/vgforum
Does anyone know an event I can capture for when a hyperlink is removed from
a shape?

Or for that matter, any time a row is removed? I couldn't find that either,
but thought that must be there somewhere.

The evtMod + evtCell doesn't seem to catch it...I've gone through all the
events on MSDN and haven't found one that gets raised when a hyperlink is
removed.
 
C

Chris Roth [Visio MVP]

Hi Adam,

Doesn't visEvtDel + visEvtCell work? I thought you could just combine
them together (but I haven't messed with this for awhile...)


--
Hope this helps,

Chris Roth
Visio MVP


Visio Guy: Smart Graphics for Visual People

Articles: http://www.visguy.com
Shapes: http://www.visguy.com/shapes
Dev: http://www.visguy.com/category/development/
Forum: http://www.viguy.com/vgforum
Hi Chris,

Thanks for the reply. There is no visEvtDel + visEvtCell that I am aware of.
I'm unable to find any reference in the SDK for catching a Row Delete event
either.

Any ideas?

Thanks,
Adam

Chris Roth said:
Hi Adam,

The event monitor only shows "insert hyperlink"

3882 >EnterScope Insert Hyperlinks [1585;0;Insert Hyperlinks;1312228]
3885 <ExitScope Insert Hyperlinks [1585;0;Insert Hyperlinks;1312228]

Have you tried evtCell + evtDelete? Or perhaps row delete?

Inside of the ShapeSheet, the removal of a hyperlink will coincide with
a row deletion in the hyperlink section.

You can look for a cell that has: Section =
Visio.VisSectionIndices.visSectionObject.

I haven't done this for awhile, so I'm not sure how much info you get
about deleted cells (since they're gone!), and I don't know if you can
get a before-delete event.

--
Hope this helps,

Chris Roth
Visio MVP


Visio Guy: Smart Graphics for Visual People

Articles: http://www.visguy.com
Shapes: http://www.visguy.com/shapes
Dev: http://www.visguy.com/category/development/
Forum: http://www.viguy.com/vgforum
Does anyone know an event I can capture for when a hyperlink is removed from
a shape?

Or for that matter, any time a row is removed? I couldn't find that either,
but thought that must be there somewhere.

The evtMod + evtCell doesn't seem to catch it...I've gone through all the
events on MSDN and haven't found one that gets raised when a hyperlink is
removed.
 

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