When you disable a button, the button text changes to gray and the button macro is made unavailable. To disable a button, use the following macro:
DisableButton("button_id")
For example, to disable the Options button, you use the following macro:
DisableButton("btn_options")
The EnableButton macro activates a disabled button. For example, to activate the Options button, you use the following macro:
EnableButton("btn_options")