SetButtonColor() method
- Last UpdatedNov 26, 2024
- 1 minute read
Use the SetButtonColor() method to set the background and foreground colors of all buttons associated with the specified control.
Syntax
SetButtonColor(controlID[, buttonID], backColor, foreColor);
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. If this parameter is omitted, all the buttons for this control are affected. For more information, see Buttons.
backColor
The color to use for the button’s background.
foreColor
The color to use for the button’s foreground.