10-02-2020 05:24 AM
Hi
I have a polygon and a text field on a graph.
I would like to center the text field in the polygon. Therefore I should have the size of the bounding rectangle of the text.
I couldn't find an attribute giving this information.
Has someone an idea how I could achieve my goal?
Thank you
Solved! Go to Solution.
10-02-2020 07:31 AM
A quick and dirty solution: use a (hidden) text message control with the same font and size you are using on the graph and operate based on the bounding rect of that control.
10-02-2020 08:47 AM
Hi
Maybe the function GetTextDisplaySize() works for you.
Jan
11-03-2020 09:56 AM
Thank you. Your answer was helpfull.