Support Board
Date/Time: Sat, 10 May 2025 11:34:50 +0000
Post From: How to place one text drawing at the end of another.
[2015-11-06 13:19:16] |
jesslinn - Posts: 108 |
I have a horizontal text panel (similar to a region data bar but more flexible). Is there a way to accurately determine the end position of a text drawing and place another one at that point? Is it best to place the text using BeginIndex or BeginDateTime? I can come close by getting the bar width in pixels using BarIndexToXPixelCoordinate on two adjacent bars and then estimating the pixels per point (1pt ~ 16px) and multiplying the string length, the font size, and the pixels per point, but I have not figured out quite the right formula to keep the panel as stable as the region data bar during spacing and scrolling events. It blinks during scrolling and resizes a little during bar spacing changes. |