Stop a shape's text to be edited

X

xargon

Hi all,

I want to programatically stop a user from editing a shape's text. In the
Visio documentation, I found the following event:

Document_BeforeShapeTextEdit. I override this event handler and I get the
event when the user double clicks to edit the shape text. Is there
something I can do in this event handler that will stop the text editing
window to appear.

Cheers and thanks!
xargon
 
M

Markus Breugst

Hi xargon,

just set the ShapeSheet cell "LockTextEdit" to 1. You don't need any event
handlers for this.

Best regards,
Markus
 
X

xargon

Hi Markus,

Thanks for the reply. However, I need to do this programatically at run
time!

Thanks,
xargon
 
M

Markus Breugst

What about setting the ShapeSheet cell programatically? Wouldn't this solve
the problem?
 

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