Premise how do I create a new combobox in the automation browser?

Motorola Premise

etc6849

Senior Member
So, I'm lost on this. I was able to create a new mutlivalue property for surround modes and create a new filter called surroundModes. I thought I could just go into plugins and create a combobox associated with a multivalue, but I can't figure it out. I've added buttons before and that easy, but a combobox seems confusing. I guess I can't use the existing options in the control library called "ChildrenComboBox" as the property isn't an object...
 
... I guess I can't use the existing options in the control library called "ChildrenComboBox" as the property isn't an object...
I believe you're right. I've looked at the code for ChildrenComboBox (and the virtually identical SiblingsComboBox) and it appears to be designed for handling A/V objects. I don't recall seeing this UI control used for anything other than selecting A/V inputs.

Of course, that doesn't mean one cannot define a new flavour of ComboBox (or any other type of UI control). But it does mean adding a new class to the ControlPanelManager (a sub-module of AutomationBrowser). I'm exploring this avenue and, if successful, I'll post the code for a MultiValueComboBox class.

Feel free to give it a shot yourself but be aware that you'll be in terra incognita; there's very little information to be found on the subject of enhancing the AutomationBrowser.

ADDENDUM
OK, I got it working. MultiValueComboBox displays the current value of a Multivalue property and allows you to select from all values of the associated Enumeration. I'll post it as a Module in the Downloads section.
 
Thanks 123 you're the best! I was really lost and confused why Premise would leave such a useful feature out.

... I guess I can't use the existing options in the control library called "ChildrenComboBox" as the property isn't an object...
I believe you're right. I've looked at the code for ChildrenComboBox (and the virtually identical SiblingsComboBox) and it appears to be designed for handling A/V objects. I don't recall seeing this UI control used for anything other than selecting A/V inputs.

Of course, that doesn't mean one cannot define a new flavour of ComboBox (or any other type of UI control). But it does mean adding a new class to the ControlPanelManager (a sub-module of AutomationBrowser). I'm exploring this avenue and, if successful, I'll post the code for a MultiValueComboBox class.

Feel free to give it a shot yourself but be aware that you'll be in terra incognita; there's very little information to be found on the subject of enhancing the AutomationBrowser.

ADDENDUM
OK, I got it working. MultiValueComboBox displays the current value of a Multivalue property and allows you to select from all values of the associated Enumeration. I'll post it as a Module in the Downloads section.
 
We'll need to hold off on the congratulations because, after further testing, it doesn't work as desired. :pray:

If I change the value of the MultiValue property in Builder, the user-interface combobox updates correctly. However, if I change the value in the UI combobox, nothing happens to the MultiValue property in Builder. It works in one direction but not the other. Phooey.
 
hmm... it sounds like it's a binding issue maybe? I wish I was a good programmer like you (I have very little programming experience)...

Any examples on making a new object associated with multiple boolean properties and a filter class that goes with it? I think if I could figure that out, I could use the original childrenComboBox?
 
I said this in the download post, but I'll say it here too:

123, once again you really went out of your way to help someone new on Premise (me specifically). I very much appreciate it! This new control class you've made works great for me. Rest assured I'll be using this on my current Onkyo receiver driver and many other drivers to come...

MultiValueComboBox
Done! I tested it on two PCs. Give it shot and let me know if it works on your PC.
 
You're welcome! I'd like to say I'll do anything to turn a Premise neophyte into a full-fledged evangelist. However, I usually limit myself to creating things that I'll use as well. The MultiValueComboBox is one of those things that was sorely needed.
 
Back
Top