Disabling inputs

Hi I was wondering is there any way to disable buttons, sliders etc… I would like for user to be able to check checkbox that is going to lock all values user set, so that they do not do any accidental changes.