2024-05-06 02:38 PM
Hello i have this condition:,
if (oOK == true) {
flexButton.setText(TypedText(T_ENTER));
} else {
flexButton.setText(TypedText(T_CLOSE));
}
flexButton.invalidateContent();
Exist reverse function, or how i can read fLexButton text value?
like:
Char fbString[x] = flexButton.getText();
Solved! Go to Solution.
2024-05-07 06:02 AM
Hello @Schamann,
When you add code to your post, please format your code for better readability by clicking on this icon:
For your issue, you will need to add this function as public in <Your-project>\Middlewares\ST\touchgfx\framework\include\touchgfx\containers\buttons\TextButtonStyle.hpp :
const TypedText &getTypedText() const{
return text.getTypedText();
}
I hope it helps,
Regards.
2024-05-07 06:02 AM
Hello @Schamann,
When you add code to your post, please format your code for better readability by clicking on this icon:
For your issue, you will need to add this function as public in <Your-project>\Middlewares\ST\touchgfx\framework\include\touchgfx\containers\buttons\TextButtonStyle.hpp :
const TypedText &getTypedText() const{
return text.getTypedText();
}
I hope it helps,
Regards.
2024-05-16 03:23 AM
Hello @Schamann,
Were you able to solve your issue ?
Regards,