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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: text size with IDLgrAxis [message #30389] Fri, 26 April 2002 09:26
Martin Downing is currently offline  Martin Downing
Messages: 136
Registered: September 1998
Senior Member
Thanks Carl, sorted.
Funnily enough, looking back at my old code thats what I did before! plus
for the sizing:
oText->SetProperty, CHAR_DIMENSIONS = [3,3]

Martin

"Karl Schultz" <kschultz@devnull.researchsystems.com> wrote in message
news:aabrtg$6r7$1@news.rsinc.com...
>
> "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
>
>
>
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
  Switch to threaded view of this topic Create a new topic Submit Reply
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 11:42:26 PDT 2025

Total time taken to generate the page: 0.00616 seconds