Set attribute of flexbutton with code on CallbackHandler
Hello,
I have multiple flexbutton and I'd like to change the border size of the button which is pressed only.
In GFX interraction panel I could of course excecute C++ code like flexButtonName.setBorderSize(5); but I'd like to have it in a generic function, with a flexbutton pointer, like this :
void Screen1ViewBase::flexButtonCallbackHandler(const touchgfx::AbstractButtonContainer& src)
{
if (&src == &flexButtonName)
{
//InteractionName
Screen1View::changeBorderSize(&src); //
}
}
// Screen1View.cpp
changeBorderSize(const touchgfx::TextButtonStyle<touchgfx::BoxClickButton>& src)
{
src.setBorderSize(5); // I got build error: "incomplete type 'Screen1View' used in nested name specifier"
}But I got an error "incomplete type 'Screen1View' used in nested name specifier", it seems that I failed my cast somewhere.
Thanks