a nicer popup list of waves / data folders (like Smooth)

The Smooth dialog has a nice little window on the side where waves and data folders can be chosen, and even searched for by filters (wave* etc).

Is this available for custom use, in analogy to using CreateBrowser with 'prompt'?
The wave list controls in built-in dialogs are only available for built-in code. But we have a (somewhat kludgey, but quite serviceable) approximation built on a listbox control. There are actually two procedures: WaveSelectorWidget, that turns a listbox into a hierarchical list of data folders and waves, and PopupWaveSelector that turns a button or SetVariable into a popup menu-style thing that pops up a WaveSelectorWidget in a popup panel.

For more info, see the demo: File menu->Example Experiments->Programming->WaveSelectorWidgetExample

John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
Thanks for pointing me there John.

It's a little kludgey but not so bad. Only, I want to be able to select multiple waves (as one can do in Smooth) for loading. i.e. I was hoping to also mimic the functionality of the Smooth dialog which lets you SHIFT+CLICK / CTRL + CLICK to select multiple waves. Another analogy would be as for Open/MULT=1.

The WaveSelectorWidget comes very close...
(I thought of building up a list of the clicked waves to mimic CTRL+CLICK, but when a list is 50 waves long, SHIFT+CLICK would be essential)
I don't know what you want to achieve, but how about working with the Data Browser directly, either by reading the selection in a function or by using the 'Execute Command' functionality for individual calls? Why build your own, when a fully functional one is already there. Or do you need selection while a function is running?
jcor wrote:
Thanks for pointing me there John.

It's a little kludgey but not so bad. Only, I want to be able to select multiple waves (as one can do in Smooth) for loading. i.e. I was hoping to also mimic the functionality of the Smooth dialog which lets you SHIFT+CLICK / CTRL + CLICK to select multiple waves. Another analogy would be as for Open/MULT=1.

The WaveSelectorWidget comes very close...


From the WaveSelectorWidget header....

Quote:

// MakeListIntoWaveSelector(windowname, listcontrolname, [content, selectionMode, listoptions, matchStr, nameFilterProc])
.
.
.

// selectionMode optional parameter to set the selection mode. A set of constants is provided
// for your convenience:
// WMWS_SelectionNonContiguous
// Allows multiple, non-contiguous selections.
// WMWS_SelectionContiguous
// Allows multiple selections, but they must
// be contiguous.
// WMWS_SelectionSingle Only a single item my be selected at a time.
// WMWS_SelectionNonContiguous is the default.
Indeed. Thanks jt. I had assumed that the demo was of all the features.