Author Topic: question about custom properties  (Read 4519 times)

0 Members and 1 Guest are viewing this topic.

david

  • Full Member
  • ***
  • Posts: 101
question about custom properties
« on: August 04, 2008, 08:52:00 AM »
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

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2947
    • Paul Herber's website
Re: question about custom properties
« Reply #1 on: August 04, 2008, 09:17:47 AM »
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 and applications for Visio -

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

vojo

  • Hero Member
  • *****
  • Posts: 1523
Re: question about custom properties
« Reply #2 on: August 04, 2008, 10:19:26 AM »
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

  • Full Member
  • ***
  • Posts: 101
Re: question about custom properties
« Reply #3 on: August 04, 2008, 10:33:44 AM »
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

  • Newbie
  • *
  • Posts: 1
Re: question about custom properties
« Reply #4 on: August 10, 2008, 01: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.

vojo

  • Hero Member
  • *****
  • Posts: 1523
Re: question about custom properties
« Reply #5 on: August 10, 2008, 02:37:22 PM »
forgot to tell you....type=1