IsButtonEnabled() method
- Last UpdatedNov 26, 2024
- 1 minute read
Use the IsButtonEnabled() method to loop through all buttons in the Button Bar control looking for the button specified by the supplied information. If the button is found, the enabled status is returned. If it is not found, False is returned.
Syntax
result = IsButtonEnabled(controlID, buttonID, userData);
Parameters
controlID
A string that indicates the ID of the control associated with the Button Bar control.
buttonID
An integer that indicates the ID of the button. For more information, see Buttons.
userData
An object that provides the user data of the button.
result
A Boolean value. The value is True if button is found and the button is enabled; otherwise the value is False.