Panel/dialog to allow a use to browse the file tree and select a wave, creating a wave reference?

Hello,

I've be wanting to do this for a while in several applications I've written. It would be really handy if there was some way for the "user" of my program could specify any wave in the experiment. This could then have a wave reference assigned and be dealt with from there. Currently I just use a list box or a popup menu that just lists all the waves in some folder. This kind of works but the user has to place any waves in a particular folder. My dream command would be something like

wave chosenWave = getWaveReference()

which would popup a window like the data browser with and expandable file tree on. The user could then browse to, and highlight a wave and press OK or Cancel. Does this exist or is there an efficient way of implementing it? It seems like something that would be very useful.

Thanks
Niall
Take a look at
#include <PopupWaveSelector>


Procedures to transform a button or setvariable control into a "popup menu" that pops up a control panel containing a WaveSelectorWidget. See below for a description of WaveSelectorWidget.

or
#include <WaveSelectorWidget>


Procedures to transform a listbox control into a hierarchical list of waves, strings, variables, or data folders. Provides for data folder-aware wave, string, variable or data folder selection in a control panel. See procedure file comments for documentation.

For a demonstration, open the WaveSelectorWidgetExample example experiment:

File->Examples->Programming->WaveSelectorWidgetExample

--Jim Prouty
Software Engineer, WaveMetrics, Inc.