setButtonEnabled

Enables or disables the button corresponding to the given command.

Parameters

cmd

the command corresponding to the button

enabled

true if you want the button to be enabled, false otherwise