Called to enable/disable the "Material" button located on the "Material" tab 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 OnAssignMaterial function is never called.