Well, I have a problem with right aligned text.
In a window I drew a text that is a variable: can be long, can be short... Depends of the value inside this varibale.
As rect size, I was using "rect.width", because this is the only way to make the align 'right' param works, and I really need this text to be right aligned.
The problem now is that I need to put an icon behind this text, but I don't know how to find the exact width of the text to draw this icon behind it, and not below or above it.
I want:
text
What I don't want:
text
[text -> This is my fail to represent that text is above the
I need it, please. Or a way to draw an icon inside a "drawText". And if you will say that I might use drawTextEx, teach me how to use this thing, because this do not works for me. The escape codes do not appear and I don't know how to align it to right too.
Tks people.
In a window I drew a text that is a variable: can be long, can be short... Depends of the value inside this varibale.
As rect size, I was using "rect.width", because this is the only way to make the align 'right' param works, and I really need this text to be right aligned.
The problem now is that I need to put an icon behind this text, but I don't know how to find the exact width of the text to draw this icon behind it, and not below or above it.
I want:
text
What I don't want:
text
[text -> This is my fail to represent that text is above the
I need it, please. Or a way to draw an icon inside a "drawText". And if you will say that I might use drawTextEx, teach me how to use this thing, because this do not works for me. The escape codes do not appear and I don't know how to align it to right too.
Tks people.