String from ListBox Selection?

Is there already a way in ListBox to export a string of selected items? When ListBox is used as the Wave Selector Widget, one can use WS_SelectedObjectsList but I find no such equivalent for the general ListBox control.
You must write code that creates the list. You will have to write a loop that looks at the SelWave to find out if a given item is selected, then put the appropriate item into a list of selected items. Something like this (assuming a one-column list):
    Wave selWave    // may be available from the listbox event structure, if this is a ListBox action proc
    Variable npnts = numpnts(selWave)
    Variable i
    for (i = 0; i < npnts; i++)
        if (selWave[i] & 1)     // is it selected?
            ... extract info on the selection from ListWave and do something with it...
        endif
    endfor


John Weeks
WaveMetrics, Inc.
support@wavemetrics.com