comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » IDLgrText: x/yrange of other than first string?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
IDLgrText: x/yrange of other than first string? [message #62683] Thu, 25 September 2008 13:42
Jean-Paul Davis is currently offline  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?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Workbench - copy and past to Word
Next Topic: Possible to display .h5 ad .hdf together

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 18:13:49 PDT 2025

Total time taken to generate the page: 0.00498 seconds