That's also called "idiot-proved"...
Examples including but not limited to...
Take a Boolean Control (Button) for example...
You may create a Property Node: Disabled for the control, set it to 0 to enable, 1 or 2 to disable the control.
For more information, you may read the context help for that property.