Column-specific listbox list wave
Tue, 02/11/2020 - 05:29 pm
Hi, I have a listbox in a GUI that holds the names of waves. The waves in the listbox are the ones I am currently performing routines/analysis on. I want to display the names of the waves in the list box without their full paths, but I need the full paths available somewhere so that I can perform routines on the waves in the list box. Right now, my solution is to have two different waves, one just with wave names and the other with their full paths. These waves get updated and changed pretty dynamically, so when one wave changes I have to remember to always make identical changes in the other wave.
Ideally I'd like to instead have a 2D wave (one column with names, the other with the full path), but only display one of the columns in the list box. Is there any syntax that would make this type of thing possible? The code below is my main attempt, where myListWave is a 2 column text wave, but it doesn't work.
ListBox matchListBox win=NT,listWave=myListWave,selWave=mySelWave
I also tried using a 2D wave to hold the names and paths, but then tethering the column with the wave names to a 1D wave that will be used in the list box.
listWave_1D := listWave_2D[p]
ListBox matchListBox win=NT,listWave=listWave_1D,selWave=mySelWave
This actually works, but the problem is that listWave_2D gets redimensioned all the time, and the slave 1D wave doesn't actually mirror the dimensions, only the content. Any other suggestions?