TextAlignment in a button
« on: 15 September 2016, 14:07:09 »
I really like your library, it really helps me in a personal project.

But there is one thing I want to do, and I don't know how. It concerns the text alignment for buttons. It is centered by default. But if the text takes some lines, all the lines are "left aligned" each others. The lines are not centered relative to the width of the button.

So I want to know if it is possible to center the lines in this way, or if it isn't possible.

Thank you in advance for your answers.

Sorry if my english is not very good, I am french :)

*

texus

  • *****
  • 1161
    • View Profile
    • Texus's Blog
Re: TextAlignment in a button
« Reply #1 on: 15 September 2016, 14:15:17 »
Changing the text alignment of a button is currently not possibe.

The Label class however supports text alignment, so depending on what you need you could use a Label for it.

Re: TextAlignment in a button
« Reply #2 on: 15 September 2016, 16:06:30 »
OK :). Thank you for your answer.