getting the width of an label object

To add comments, please log in or register
Dan
105
Dan  

Hi,

I have a label object with an OBJPROP_CORNER=CORNER_RIGHT_UPPER. The label shows a dynamic value, so the the width of the label is also dynamic. Because of the upper right corner the label widens to the left side.

Question: How can I get the left x-coordinate (means the end to the left) of that label?

What I wanna reach is someting like this:

| Text |  | Value |

The center of coordinates for the text label is also the upper right corner. The space between the text and value labels should always be the same.


Thanks community!

To add comments, please log in or register