Implemented three-state buttons on button toolbar.