[HOWTO] 'grey-out' labels when a field is disabled

[HOWTO] 'grey-out' labels when a field is disabled

By default when you disable a field, it only 'greys-out' the field. If the field that you are disabling has a label associated, nothing would happen to it (unlike fat client GUIs). I found this counter-intuitive, so I wrote some code to override this behavior: