Prevent user from defining Shape Data?

Another day, another question. I'm enjoying this but it is very challenging! I guess thats why this website is here?!

I'm using DOCMD(1312) to get my users to enter data and then have some of this data appear in the shape's text field. Each time they double click they also have the option to "define shape data" but I would really like to prevent the user from doing this.

An option for "protect defined shape data" or "protect user from defining shape data" would be perfect. Any ideas??

Thanks in advance.
Daniel HillAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Scott HelmersVisio Consultant, Trainer, Author, and DeveloperCommented:
I suspect the only way to do this would be to write code that disables the define shape data menu entries... afraid that I can't help with the specifics of how to do that but I don't know of another way.
Chris RothCommented:
I had a suspicion that a ShapeSheet cell was added to do this, so I asked DJP (Scott knows...) and he mentioned the LockCustProp cell in the Protection section of the ShapeSheet. This property doesn't appear in the Protection dialog, so you have to go the backway via the ShapeSheet, but it looks like you know how to do that already!

Check it out, it works!

It also disables the Define Shape Data... menu item when you right-click in the Shape Data panel:


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Scott HelmersVisio Consultant, Trainer, Author, and DeveloperCommented:
Excellent! More proof of the reason why I hang around at Experts Exchange. Yeah, I get to answer a few questions but I also get to be reminded of things I once new, and learn cool, new stuff (and sometimes cool, not-so-new stuff) along the way. Thanks, Chris.
Daniel HillAuthor Commented:
Excellent, thanks guys! This has done the trick.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Visio

From novice to tech pro — start learning today.