radioGroup, ListBox

Sorry to bombard you with issues. I wanted to add a modifier to the musical length selector like “straight/triplet/dotted” (code is attached). In Cabbage 2, I would have done this with three buttons in a radioGroup. That does not exist anymore in Cabbage 3 - right?

But from the old posts about radioGroup I see that ListBox may even be the better alternative because it only uses one channel. In priciple this works. But when I add ListBox with the graphical editor, it starts with an enormous font size. I can reduce this to 20, but still the distance between the items is as large as before.

Also, I wonder if it is possible to change the activation to single click. Of course, for a file selection, double click makes sense. But if it is just to select an option, single click feels more natural to me

TruePingPong.csd (6.6 KB)

.

Don’t apologise, I’m very happy to iron these issues out sooner rather than later. Radio groups still exist, but I see an ommission in the docs. I will update this. You can just use "radioGroup":num, or you can use a string identifier for them. In terms of other widgets, the optionButton might also be useful to you. It lets you toggle through a set of items on each click.

I will look at the listbox and see what’s going on. I think an option to send on single click sounds reasonable. :+1:

I’ve pushed an update that add a "singleClick":true/false property to the listbox. The update should be available shortly in 3.0.24-beta when it’s ready. I’ve also updated the docs, but it will take a while before my PR is merged.

Thanks! I am going to try this out.

1 Like