cancel
Showing results for 
Search instead for 
Did you mean: 

Central text alignment doesn't work

EEuge
Senior

0693W000006HKJkQAO.png 

void SmallFlag_Container::SetLanguage(Bitmap icon, TEXTS lang)
{
    FlagImage.setBitmap(icon);
	  LangText.setTypedText(TypedText(lang));
	//  LangText.resizeToCurrentTextWithAlignment();
 		LangText.invalidate();
}

In TouchGFX all is right

0693W000006HKK9QAO.png 

but in real life text is always aligned at left....

How to fix?

4 REPLIES 4
MM..1
Chief III

I use this

	textArea1.setWildcard(textArea1Buffer);
	textArea1.invalidate();
	textArea1.resizeToCurrentTextWithAlignment();
	textArea1.invalidate();

and Center need be set in texts.xls or screen Texts in designer

Problem solved!

Problem solved!

Alexandre RENOUX
Principal

Hi EEuge,

When your question is answered, please close this topic by choosing Select as Best.

/Alexandre