Event for changing ParaProps/Text Formatting?

A

Adam

I would like to add a handler to an event that would fire when the user has
bolded the text in a shape (or otherwise modified the formatting), then
clicked out of the shape.

EvtMod + EvtText doesn't fire if the text itself doesn't change.

I'm open to using DEPENDSON to fake it if that is the only option, but as
the formatting of text is handled by ParaProps runs, I'm not sure what I
would tie the DEPENDSON to.

Any ideas?
 
C

Chris Roth [Visio MVP]

Hi Adam,

You could watch for cell changed events and look for cells that are
named Char.Style, Char.Style[2], Char.Style[3], etc.

The Visio SDK help and code samples also have info about event filters
that you might be able to use to make it easier to sift through the events.

--
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,

That worked well...thanks! The only caveat is that this event fires while
the user still has the textbox open, which causes the text box editing window
to close.

What I did instead was set a "dirty" flag if they modified the style, and
added a sink to the visEvtCodeShapeExitTextEdit event which would fire if the
dirty flag was set.

Chris Roth said:
Hi Adam,

You could watch for cell changed events and look for cells that are
named Char.Style, Char.Style[2], Char.Style[3], etc.

The Visio SDK help and code samples also have info about event filters
that you might be able to use to make it easier to sift through the events.

--
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
I would like to add a handler to an event that would fire when the user has
bolded the text in a shape (or otherwise modified the formatting), then
clicked out of the shape.

EvtMod + EvtText doesn't fire if the text itself doesn't change.

I'm open to using DEPENDSON to fake it if that is the only option, but as
the formatting of text is handled by ParaProps runs, I'm not sure what I
would tie the DEPENDSON to.

Any ideas?
 

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