Re: text size with IDLgrAxis [message #30389] |
Fri, 26 April 2002 09:26  |
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
>
>
>
|
|
|