Cabbage Logo
Back to Cabbage Site

Combobox resets when using channeltype("string") (fixed)

Try using the following code. Then save/update, select number 2 o 3 in the combobox and move the slider up. Altough it doesn’t update the “combobox” channel (I tested it), the display resets to the first item (“1”).

form size(400, 300), caption(“Untitled”), pluginID(“plu1”)
combobox bounds(12, 72, 100, 30), items(“1”,“2”,“3”), channel(“combobox”), channeltype(“string”)
vslider bounds(234, 26, 30, 200), channel(“vslider”), range(0, 1, 0)

P.S. Sorry if it’s something you already fixed. I haven’t checked out the dev branch again before trying.

Wow. That’s a good one! I’ll take a look.

[edit] I found the problem. Fixed in git.

It works now! But I think there is a missing closing curly bracket in the definition of ‘void ChildAlias::MouseDown’. I had to add another one after the last ‘#endif’ to make it compile.

That’s odd. I’m doing all my development on Linux, so I would have expected to catch that problem too? Anyhow, I’ve since updated the source. Maybe you could try again and see if the problem is still there?

Hey, nice to see all the info from the channels being printed! I am wondering how you managed to build it before!
I see now that you removed ‘if(e.getNumberOfClicks()==1)’ from the definition of ‘void ChildAlias::mouseDown (const MouseEvent& e)’. Of course without that opening curly bracket, all braces are now balanced.
Now that this works I have managed to build a Cabbage alternative for Oeyvind Brandtsegg’s Hadron. I’ll post a patch in the Csound List in case anyone wants to use it.

Oeyvind has created one he is using himself as far as I know but I’ve yet to see it. I’m very interested to see what you have come up with!