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

Home » Public Forums » archive » Access to title object in 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
Access to title object in IDLgrAxis [message #46254] Sun, 13 November 2005 22:20
IDLmastertobe is currently offline  IDLmastertobe
Messages: 54
Registered: June 2004
Member
hi, i have an IDLgrText object embedded into a IDLgrAxis object as a title,
but now I am try to implement an option of having the title or not
depending on user input. Does anyone know how to get access to the
IDLgrText object? Then I would be able to use the HIDE function to make
the title disappear or appear.

oAxis = OBJ_NEW('IDLgrAxis',name='colorbar',
range=[0,256],/EXACT,COLOR=!label_color, $
TICKLEN=15,MAJOR=5,TITLE=oCBTitle)

where the oCBTitle is defined as follows:

oCBTitle = OBJ_NEW('IDLgrText','Grayscale', name='title')

I tried using the "GetByName function", but I think either I can't use it
or I used it the wrong wrong. IDL prompt me error message "cannot invoke
a null subject" or something when I tried to get access by:

oTitle = oView->GetByName('cbtop/colorbar/title')

Thanks for your time.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Quickly Erasing lines on direct graphics images
Next Topic: Re: Access to title object in IDLgrAxis

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

Current Time: Wed Oct 08 11:32:28 PDT 2025

Total time taken to generate the page: 0.00570 seconds