Programmatic access to Visio shape tooltip -


to avoid xy problem, here's i'm trying accomplish: when shape selected, want detail text shape appear on screen.

i first tried using shape data, supports single-line name=value pairs. detail information arbitrary, multiline text blob.

my next thought used shape's screentip (aka tooltip) hold text data, write vba code handle _selectionchanged event. when shape selected want copy it's screentip text text of object (my details panel).

i got _selectionchange event-handling working, poking around selection object in debugger can't find property of selected object exposes screentip information.

is visio's programming api anemic support kind of thing? there way might able this? there tool might better (preferably free)?

visio's api capable of doing this, handily.

it seems you're not aware of visio's shapesheet, screen tip text stored, along pretty you'd want know shape.

to access screen tip text read comment cell selected shape's shapesheet:

application.selection(1).cellsu("comment").resultstr(visnone) 

this code return comment text.

you're on right track using selectionchange event, though of course you're checking selection count = 1, or @ least >0.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -