Description:
Called to enable/disable the "Edit" button located on the "Material" in the Properties and Layer dialog boxes. The default return value is False which will disable the button. If the button is disabled then the OnEditMaterial function is never called.