2024-05-06 2: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 6:02 AM - edited 2025-03-04 5:28 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,
Edit : This is a native feature in 4.25
Regards.
2024-05-07 6:02 AM - edited 2025-03-04 5:28 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,
Edit : This is a native feature in 4.25
Regards.
2024-05-16 3:23 AM
Hello @Schamann,
Were you able to solve your issue ?
Regards,