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 procVariable npnts = numpnts(selWave)Variableifor(i = 0; i< npnts; i++)if(selWave[i]&1)// is it selected?
... extract info on the selection from ListWave and do something with it...
endifendfor
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
July 20, 2017 at 10:42 am - Permalink