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

Home » Public Forums » archive » Re: iTools Widgets
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: iTools Widgets [message #69379 is a reply to message #69377] Thu, 14 January 2010 18:35 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ray writes:

> I am some new to IDL and I am now designing a 3D Viewer.
>
> I find the COLOR SELECTING widgets is quite easy to use and user
> friendly, so I am planning to use it in my program. However, anybody
> knows how can I add the COLOR SELECTING widget to my program?
>
> (The COLOR SELECTING widgets is the one in itool properties, SAMPLE:
> demo->itools->2D iplot demo->right click a plot->properties->COLOR in
> the Visualization Browser Window)

Ah, the passion and fire of youth!

Here are the steps.

1. Subclass your 3D Viewer object from IDLitComponent.
2. Create GetProperty and SetProperty methods for your
objects "color" property.
3. Register your "color" property using the RegisterProperty
method of your object (from IDLitComponent). Set its "type"
to "COLOR".
4. Write a property sheet for your object using the
PropertySheet widget.

That's it. Done. Finished.

Do let us know how this program goes!

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Previous Topic: iTools Widgets
Next Topic: Re: Where can I find a description of the !MAP structure tags?

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

Current Time: Sat Oct 11 16:02:20 PDT 2025

Total time taken to generate the page: 0.56036 seconds