I'm using valuepairs as labels on a CWgraph. These are set to autosize and can vary wildly in length,
typically 3 to 40 chars. I want to get the size of the the text so that I can adjust other overlaid
components when the plot area resizes as the labels resize.
I have tried doing this by creating a hidden static text with same font as the graph, filling it with
the same text as the label and calling GetTextExtent to get the size of the text.
This nearly works but seems to be out by up to 10-15% with some strings and dead-on with other strings.
Does the graph do anything wierd with the text it uses in labels? Kerning?
Paul