Question
Programmatically set flex button wildcard alignment
I have three buttons who's wild card text I change programatically. When I do so, the alignment of the text changes from centre-aligned to left-aligned.
Before:

After:

A) How do I prevent that from happening?
OR
B) How do I change the alignment to centre-aligned programmatically?
This is my code:
// Elsewhere:
typedef struct _Parameters {
ThingA thingA;
ThingB thingB;
ThingC thingC;
} Parameters;
const touchgfx::TypedText ThingANames[] = {
T_TEXTA,
T_TEXTAA,
T_TEXTAAA,
T_TEXTERROR,
T_TEXTNONE
};
// Here
void selectThingsView::setupScreen()
{
selectTubingCustomViewBase::setupScreen();
Parameters parameters = presenter->getParameters();
buttonSelectThingA.setWildcardText(ThingANames[static_cast<int>(parameters.thingA)]);
buttonSelectThingA.invalidate();
}Thanks,
Julia
