Combobox - slider control
-
Hi all, what's the easiest way to achieve controlling a combo box value with a slider? I've got an instrument with 100 sample maps, which also has a combobox to display all the samplemaps. This is a bit long visually, so I'd like to implement a slider that cycles through the maps, so the user can just cycle through them rather than clicking the box to access a long list.
-
From the slider's callback use
yourComboBox.setValue(value + 1);
-
@d-healey Perfect, thanks!
-
@d-healey I've just tried this but it doesn't seem to be working. It cycles through the combo-box list, but it doesn't load the corresponding sample map - just cycles through the names. Selecting an item within the combo box works. Any ideas what could cause that? Appreciate the help.
-
This post is deleted! -
You need to call
.changed
if you want to trigger the combo box's callback. -
@d-healey Ah that's it, knew it was something simple! Thanks.