how to enable and disable the toolbar button in solidworks?

how to enable and disable the toolbar button in solidworks?

If i click one toolbar button the other button will be enable or disable. How can i write coding for this?

SolidworksToolbox