cancel
Showing results for 
Search instead for 
Did you mean: 

FlexButton.getText()

Schamann
Associate II

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();

1 ACCEPTED SOLUTION

Accepted Solutions
LouisB
ST Employee

Hello @Schamann,

When you add code to your post, please format your code for better readability by clicking on this icon: 

LouisB_0-1715086748468.png

 

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.

Louis BOUDO
ST Software Developer | TouchGFX

View solution in original post

2 REPLIES 2
LouisB
ST Employee

Hello @Schamann,

When you add code to your post, please format your code for better readability by clicking on this icon: 

LouisB_0-1715086748468.png

 

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.

Louis BOUDO
ST Software Developer | TouchGFX
LouisB
ST Employee

Hello @Schamann,

Were you able to solve your issue ?

Regards,

Louis BOUDO
ST Software Developer | TouchGFX