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

Home » Public Forums » archive » Re: text size with IDLgrAxis
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: text size with IDLgrAxis [message #30393 is a reply to message #30389] Fri, 26 April 2002 08:31 Go to previous message
Karl Schultz is currently offline  Karl Schultz
Messages: 341
Registered: October 1999
Senior Member
"Martin Downing" <martin.downing@ntlworld.com> wrote in message
news:Z_dy8.2886$Mi.336914@news2-win.server.ntlworld.com...
> Hi All,
>
> How do I control the text size of the labels with a IDLgrAxis object.
> I mean I realise I *could* supply an array of text objects for each tick,
> but I'd prefer not to bother(!) - surely theres a property to set char
size
> (and font for that matter).

In short, use the TICKTEXT property.

For example,

oAxis = OBJ_NEW('IDLgrAxis', /USE_TEXT_COLOR)
xobjview, oAxis ; default axis - all black

oAxis->GetProperty, TICKTEXT=oText ; Note that a single text object is
returned, containing a string for each tick.
oText->SetProperty, COLOR=[255,0,0]
xobjview, oAxis ; ticktext is now red

oFont = OBJ_NEW('IDLgrFont', SIZE=20)
oText->SetProperty, FONT=oFont
xobjview, oAxis ; tick text is now bigger

Karl
[Message index]
 
Read Message
Read Message
Previous Topic: Re: books about idl
Next Topic: environment variables on windows

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

Current Time: Wed Oct 08 19:22:06 PDT 2025

Total time taken to generate the page: 0.00437 seconds