right justified lable - how to line up?

  • Thread starter Thread starter Glenn Lerner
  • Start date Start date
G

Glenn Lerner

I have Label controls with TextAlign property set to MiddleRight.

For some reason, the text doesn't always shift all the way to the right.

Example: If I put "10" it seems to be shifted all the way to the right.
If I put "1,000,000" it shifts little bit to the left leaving little
space to the right. This doesn't look right if I have multiple labels
lined up vertically.

Does anyone else experience this? Is there a way to line them up?

Thanks,
Glenn
 
Glenn Lerner said:
For some reason, the text doesn't always shift all the way to the right.

Example: If I put "10" it seems to be shifted all the way to the right.
If I put "1,000,000" it shifts little bit to the left leaving little
space to the right. This doesn't look right if I have multiple labels
lined up vertically.

Does anyone else experience this? Is there a way to line them up?

You aren't dreaming - I've noticed this as well. I would say its a bug,
and I haven't found any way to get around it short of writing a
"FixedLabel" control (which I haven't done yet, but I'm considering - it
would be quite easy.) It seems that the longer the string you try to
right-justify, the further away from right-justified it gets.

-mdb
 
Back
Top