Add the enable of toolButton and the check of type
component in toolButtonParam
Add the message box warning