First, to see it:

As you can see, the “align right” functionality suffers from not being exact. It varies greatly depending on what letters are used and in the end really looks pretty poor when you have labels next to boxed areas in your app (like text areas or a series of buttons).
Here’s the code for the above:
local ui = require("ui");
local label;
label = ui.newLabel {
text = "text1:",
textColor = {255, 255, 255, 255},
size = 14,
align = "right",
bounds = {0, 100, 100, 40},
};
label = ui.newLabel {
text = "some text2:",
textColor = {255, 255, 255, 255},
size = 14,
align = "right",
bounds = {0, 145, 100, 40},
};
label = ui.newLabel {
text = "TeXt3:",
textColor = {255, 255, 255, 255},
size = 14,
align = "right",
bounds = {0, 190, 100, 40},
};
label = ui.newLabel {
text = "TEXTY4:",
textColor = {255, 255, 255, 255},
size = 14,
align = "right",
bounds = {0, 235, 100, 40},
};
local showError = display.newRect(99, 100, 10, 160);
showError:setFillColor(255, 0, 0, 255);
showError:setStrokeColor(255, 0, 0, 255);
BTW, you guys should really consider phpBB or some standard forums for your forums. At the very least, “code” should auto-include a pre tag so tabs show up correctly.
[import]uid: 5659 topic_id: 704 reply_id: 300704[/import]
