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

Home » Public Forums » archive » Re: crazy question
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: crazy question [message #65381 is a reply to message #65380] Mon, 02 March 2009 13:10 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
llo writes:

> Is it possible to do something like that?
>
> ex='KEYWORD_NAME'
> aa=OBJ_NEW('AN_OBJECT')
> aa->SetProperty, ex=5
>
> I know this is imposible but maybe there is way to use strings (as a
> keywords) to set values.

Make your object inherit from an IDLitComponent object,
then you can use the SetPropertyByIdentifier method
to do this. (You probably have to register the properties
you want to set this way, first. See the RegisterProperty
method.) This will work for *any* object, not just object
graphics objects. I use it extensively in the Catalyst
Library.

Cheers,

David

--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: the problem of using CALL_EXTERNAL()
Next Topic: Re: the problem of using CALL_EXTERNAL()

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

Current Time: Fri Oct 10 10:20:35 PDT 2025

Total time taken to generate the page: 1.18653 seconds