Re: Help with Object graphics [message #19346] |
Wed, 08 March 2000 00:00 |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Luca Fini (lfini@arcetri.astro.it) has lots of strange
characters in his code, but I think I get the gist
of what he is asking when he writes:
> I've a strange problem as shown by the following test program, stored in
> file "prova.pro":
>
> Txt =3D OBJ_NEW('Idlgrtext')=09=09; Create a gaphic oject
> whichfont =3D txt->GetProperty(Font)=09; Ask for info about it
> END
Although "GetProperty" sounds as though it is going to
be a function method for sure, it is really a procedure
method. So the code will look like this:
txt = Obj_New("IDLgrText")
txt->GetProperty, Font=theFont
Print, theFont
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|