[SOLVED] setText problems
I do not why I am having problems using the method setText for a Label.
When I do:
On the screen it appears "est". The first character does not appear.
Can you post more code? I haven't seen this issue with labels on my end.
These are the lines:
mLabel = mSheet->createLabel("DebugText");
What is wrong?
If you remove the call to setSize, does the label display properly? Also is scrolling involved in any way, and what is the size of of the sheet?
I have removed the setSize line and it does the same. The label autosizes, but showing the text uncorrectly.
I have 2 labels, and when I change the text in one of them, also changes the text in the another one (it remobves the first character of the text).
Is not scrolling involved.
I have not set the size of the sheet, I have just done:
mSheet = mGUIManager->getDefaultSheet();
Sorry, I've never seen what you describe, and altering one label should not affect any other labels. If you create a label in the demo does it produce similar behavior? Can you show a screenshot of the provided demo?
I was using the v.0.9.7 Prereleased version, I have migrated to v.0.9.7 and it seems to work perfectly.