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

Home » Public Forums » archive » Colormaps (a favorite subject!)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Colormaps (a favorite subject!) [message #19448] Fri, 24 March 2000 00:00 Go to previous message
Craig Hamilton is currently offline  Craig Hamilton
Messages: 28
Registered: December 1996
Junior Member
Hi all:
I've run into a little snag dealing with colormaps and thought I would seek
the advice of the wise ones.

I have an image-viewing program that displays gray-level images.
Works great. I had this idea that I wanted to make some
of settings user-selectable on startup, so I first popped up a window with
some radio buttons in it. One set of radio buttons lets the user select
the number of gray-levels used in the colormap.

The problem is that IDL requires something like:
window,0,colors=numcolors,/pixmap,xsize=10,ysize=10
wdelete,0

to initially setup the colormap, prior to any windows being created.

But, I have already created my popup window. So it seems to me
I'm in a catch-22: I have to specify the number of colors before I
create my popup window, but I don't know the number of desired
colors until after I have created my popup window.

My popup doesn't create any draw widgets, if that matters.

So, the question is:
Is it possible to use a popup window to get from the user the number
of desired gray-levels?

I hope this is clear. Any tips most appreciated.

Craig
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: FFT secrets revealed!! Update 6/5/2000
Next Topic: Advanced Programming Course in Europe

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

Current Time: Wed Oct 08 17:40:45 PDT 2025

Total time taken to generate the page: 0.00551 seconds