Hi Mayca
If you have used the RibbonLib from the MapBasic Common Libraries, you may also be aware of the many procedures in this module for handling controls.
The one you want to look at is RBNControlEnableThs.
It holds numerous calls to the various dedicated methods for the specific control type.
For the Button control type, you want to use this:
Call SetRbnBtnCtrlEnabled(rbnControl, bEnabled)
The bEnabled variable can be True or False depending on whether you want to Enable to Disable to control.
------------------------------
Peter Horsbøll Møller
Principal Presales Consultant | Distinguished Engineer
Precisely | Trust in Data
------------------------------