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

Home » Public Forums » archive » widget_list() 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
widget_list() question [message #72460] Thu, 09 September 2010 12:11
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Hello,

I am putting together a little display tool where I would like to keep track of datafiles I have been using/displaying.
I want all the filenames for the session to be visible, as well as selectable so I can "flip" between files (all of the
data from the files are kept in an IDL_Container object.)

So what I want to be able to do is:
1) create an empty list widget.
2) append new filenames to the list as they are read in. (e.g. "widget_control, id, append_value = filename" type of thing)
3) retrieve the list of all the filenames, or just the currently selected one.
4) retrieve the position in the list of the currently selected entry (I think I know how to do that already).

I thought I could use a regular old WIDGET_LIST() to do this but it appears to be quite difficult to concatenate values
in an already existing list, to say nothing of retrieving the list of string values in the list. I gather I'll need to
use the FUNC_GET_VALUE keyword, but how does one construct a function to retrieve the list contents? (The documentation
didn't point to any examples that I could find)

I guess the question I'm asking is if widget_list() can handle this sort of functionality, or do I need to construct my
own compound widget to do the job?

Alternatively, should I just keep track of stuff in my own (already existing) file_list container and simple recreate
the list from scratch everytime something changes? (Seems a bit bull-in-a-china-shop'ish)

Any info/hints appreciated.

cheers,

paulv
[Message index]
 
Read Message
Previous Topic: Ellipse fitting?
Next Topic: Locate pixels that fall within other pixel-geo search

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

Current Time: Sun Oct 12 08:35:12 PDT 2025

Total time taken to generate the page: 1.36111 seconds