Discussion:
Remove HyperLink Event?
(too old to reply)
AdamB
2009-05-01 17:40:26 UTC
Permalink
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.
Chris Roth [Visio MVP]
2009-05-18 18:19:27 UTC
Permalink
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
Post by 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.
AdamB
2009-05-18 20:29:03 UTC
Permalink
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
Post by 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
Post by 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.
Chris Roth [Visio MVP]
2009-05-25 14:45:04 UTC
Permalink
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
Post by 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
Post by 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
Post by 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.
Loading...