News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

question about custom properties

Started by david, August 04, 2008, 01:52:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

david

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

Paul Herber

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 ...
Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/

vojo

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).

david

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?

Leo

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.

vojo


Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 235 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1117KB.
Tokens: post-login.
Cache hits: 13: 0.00140s for 26,766 bytes (show)
Cache misses: 2: (show)
Queries used: 15.

[Show Queries]