Question
Change Wildcard text fore color on a FlexButton
Created this function where want to pass a flex button as a parameter to the function and change it's text color.
Changing the text color directly using the object name works, but when I pass the button to the function I cannot get it work
Any help very much thankful
void scr_MainView::setButton(touchgfx::AbstractButtonContainer &button)
{
// works
// directly setting color of this button
Float2Button.setTextColors(Color::getColorFromRGB(125, 125, 45), Color::getColorFromRGB(145, 145, 145));
// error
// button passed to function
&button.setTextColors(touchgfx::Color::getColorFromRGB(145, 145, 145), touchgfx::Color::getColorFromRGB(145, 145, 145));
}