Skip to content

Is it possible to turn off the automatic adjustment function of text elements? #554

Answered by Pconti31
goddade asked this question in Q&A
Discussion options

You must be logged in to vote

@goddade I may not really understand what the issue is but since you started with a button I'll take a guess,
Buttons keep text centered by setting the Text Alignment=GSLC_ALIGN_MID_MID
You can do the same with text.

Even when you change content of pElemTxtOut1 to something different it will automatically be centered.
Say like:

gslc_ElemSetTxtStr(&m_gui, m_pElemTxtOut1, "new content");

Paul--

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@goddade
Comment options

Comment options

You must be logged in to vote
1 reply
@goddade
Comment options

Comment options

You must be logged in to vote
1 reply
@goddade
Comment options

Answer selected by goddade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants