So I've searched on the forums, and found some interesting things about aligning text vertically. Unfortunately, the only answer that had people happy included a link to an older post that, for whatever reason, doesn't work for me.
This would be for a single text field. It potentially has multiple lines, but I'm only interested in one liners at the moment.
So we can put the text field into a group, which makes it much simpler - I just want to center that text field vertically relative to the group.
Here's the issue - the bounding box for the text is bigger vertically than the text. If the bottom of the text was actually the bottom of the text, then it wouldn't be such a problem, but the bottom of the text accounts for descenders, so the bottom of the bounding box sits below zero, while the text itself sits roughly right at zero. There is also empty space above, possibly to account for some unicode characters, I don't know.
But the bounding box is not truly a box bounding the rendered text.
In any event, though some finagling with visual logic, I was able to, more or less, center the text. The equation involved both BoundingBox height and top. Unfortunately, there is no documentation on the scripting side for IBoundingBox. I can tell you that "top" is NOT a property of it.
So? I can do it in visual logic, so what's the problem? The problem is if I have twenty lines, I can create a text field with an on-set-text script, and then duplicate it 19 times. If I use visual logic, I have to redo the logic for every single line.
So questions - are there any API help files that actually have descriptions filled in? Two, can we ever expect that we can get the same functionality in our scripts that we get in visual logic? There's a TON of things in visual logic that aren't available in scripting, it seems. Will Xpression ever offer vertical centering for text?