Home »
Public Forums »
archive »
IDLgrText: x/yrange of other than first string?
IDLgrText: x/yrange of other than first string? [message #62683] |
Thu, 25 September 2008 13:42 |
Jean-Paul Davis
Messages: 17 Registered: March 1998
|
Junior Member |
|
|
Creating an IDLgrAxis with automatic tick values and automatic
formatting generates a single IDLgrText object for the entire set of
tick labels. I'd like to find the xrange (or yrange) of the widest
(or tallest) one of these labels. Apparently, the xrange or yrange
property returned by IDLgrText refers only to the first string in the
object's "strings" array. The same goes for using GetTextDimensions
on the destination IDLgrWindow. Unfortunately, it often arises that
the first string is the single character '0' while other tick labels
on the same axis are many characters long.
I'm guessing that I will have to create and maintain the tick label
text (as an array of IDLgrText objects) myself, something I don't
relish. Does anyone know another way?
|
|
|
Current Time: Wed Oct 08 18:13:49 PDT 2025
Total time taken to generate the page: 0.00498 seconds