Hi
I’m trying to change the contents of a combobox and a listbox after creation but can’t. In the example below the colour changes but the items do not. Am I going about this in the correct way? I’m running 2.5.0 x64 on Windows.
cabbage-combo.csd (657 Bytes)
<Cabbage>
form caption("Test") size(400, 300), pluginid("def1")
combobox bounds(0, 0, 300, 50) items("Nothing", "Here") identchannel("combo_ident") value(1) channel("combo")
listbox bounds(0, 100, 300, 50) items("Nothing", "Here") identchannel("lbox_ident") value(1) channel("lbox")
</Cabbage>
<CsoundSynthesizer>
<CsOptions>
</CsOptions>
<CsInstruments>
ksmps = 32
nchnls = 2
0dbfs = 1
instr 1
chnset {{colour(255, 0, 0), items("Some", "Items", "Here")}}, "combo_ident"
chnset {{colour(255, 0, 0), items("Some", "Items", "Here")}}, "lbox_ident"
endin
</CsInstruments>
<CsScore>
f0 z
i1 0 1
</CsScore>
</CsoundSynthesizer>