About the TextField.setTextAlign(BitmapFont.Align.Right);

Dear all, thank for the good GUI toolkit…

I want use the textfield element to do some inputting but there are some bug about the caret position when the text-align setting is not left.
is there any function to call can fix this?

@chankahou said: Dear all, thank for the good GUI toolkit...

I want use the textfield element to do some inputting but there are some bug about the caret position when the text-align setting is not left.
is there any function to call can fix this?

Hmmm… at the moment there is not. I didn’t even consider that someone might align the text other than left.

I’ll see what can be done with this… though, not sure how long it will take me to come up with a fix for this off the top of my head.

one more bug:

I use the button element and change the font color at first
but the font color is always become to default when you lostfocus on this button…

Thanks a lot.

@chankahou said: one more bug:

I use the button element and change the font color at first
but the font color is always become to default when you lostfocus on this button…

Thanks a lot.

Use this:

[java]
setFontColor(ColorRGBA fontColor, boolean makeDefault);
[/java]

Thanks a lot

1 Like