Visio Guy

Visio Discussions => ShapeSheet & Smart Shapes => Topic started by: david on August 04, 2008, 01:52:00 PM

Title: question about custom properties
Post by: david on August 04, 2008, 01:52:00 PM
i want to make some properties (in some cases) unclickable.  i know there's a possiblity to make them invisible but it's not what i want.  i just want them to become grey or something similar so that the user will know that for now he can't change those properties.

is it possible?

thanks
David
Title: Re: question about custom properties
Post by: Paul Herber on August 04, 2008, 02:17:47 PM
I don't know of a way to do that but an interesting side effect of making a custom propery invisible -
With a shape with no custom properties:
add a custom property with the default name, then make it invisible
add another custom property and you will be offered the same default name, when the original property is made visble then you have 2 custom properties with the duplicate labels.
Ok, these are only the custom property's labels rather than their names ...
Title: Re: question about custom properties
Post by: vojo on August 04, 2008, 03:19:26 PM
custom property format = actual data.

Shapesheet wise...if you want to do this after somebody enters a property...use action fields to trigger a
SETF(GETREF(custom.prop.format),custom.prop.value)

it will lock in the value (error posted if somebody tries to change it).
Title: Re: question about custom properties
Post by: david on August 04, 2008, 03:33:44 PM
i've just tried it.  didn't work.
maybe i misunderstood you.
i copied the property's value to the property's format.  but i could still change the value when i dragged the shape to the frame.

what did i do wrong?
Title: Re: question about custom properties
Post by: Leo on August 10, 2008, 06:53:09 PM
David, I don't know how to make a property unclickable, but if it is okay for it to look like all the other visible properties but simply discard the users' changes, you could type =GUARD(...) around the formula and type (read-only) at the end of the property's prompt.
Title: Re: question about custom properties
Post by: vojo on August 10, 2008, 07:37:22 PM
forgot to tell you....type=1