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
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.
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?
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.
// 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.
For more info, see the demo: File menu->Example Experiments->Programming->WaveSelectorWidgetExample
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
June 4, 2015 at 09:19 am - Permalink
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...
June 4, 2015 at 11:01 pm - Permalink
June 4, 2015 at 11:02 pm - Permalink
June 5, 2015 at 12:14 am - Permalink
From the WaveSelectorWidget header....
June 5, 2015 at 05:03 am - Permalink
June 5, 2015 at 07:34 am - Permalink