Not a whole lot I can show you, but here’s some code:
-- This implements my high score list.
local label\_hchaln1 = ui.newLabel{
bounds = { 33, 50, 125, 20 },
text = "Sean",
textColor = { 255, 255, 255, 255 },
size = 16,
align = "left"
}
label\_hchaln1.isVisible = false
-- much later in code, and after an event..
showHighScoresGroup:insert(label\_hchals1)
label\_hchaln1.isVisible = true
if(scores\_hchal[1] \> 0) then
label\_hchaln1.text = names\_hchal[1]
else
label\_hchaln1.text = " "
end
-- and even though I know it shouldn't be necessary, and it doesn't seem to help
-- I do:
label\_hchaln1.align = "left"
showHighScoresGroup.parent:insert(showHighScoresGroup)
When the above code (plus mode, of course) finishes, the user should see a two column high score list, the names left justified, the scores right justified. What I see, however, is not left (or right) justified. The label contents are centered within the entire label width.
Aligning left, center, or right does make a different, but the labels aren’t pushed all the way left or right when aligned accordingly.
If you want to shoot me an email, I can provide you a screen shot of what it looks like.
Sean.
[import]uid: 4993 topic_id: 590 reply_id: 1176[/import]