Posts: 40,483
Threads: 491
Joined: Aug 2002
You cannot do a drop down list. We will have a scrollable list in the next release, but that won't help you now. You'll have to have a set of buttons that let the user select which one to control.
This will be much easier in 1.7, but for now the way you would do this is:
1. Create a small overlay widget where this light control 'multi-widget' will go
2. Set up a set of buttons that select which light. Each of them just sets one or more variables that indicates the light to control (probably just storing the relevant field names) and then reloads the little overlay.
3. Create a template that has the three widgets on it. In the Base tab give them all names so that they can be targeted. Use the Xlat tab of the template to set up a translation for that light indicator, slider, and button, using the values in the previously set variables
4. Use a simple CML macro that you invoke from the button to which you pass one of the variable values, and it uses to do the actual write to the field.
The reason for #4 is just a practical one that in the currently version you cannot enter a manual value for the field to write to, so there's no way to use the variable names you set in the button press step. SO you cannot dynamically select a target field. But you can write a little macro that takes the name of a field to write to, becase the macro parameter value is an open ended value you can type whatever you want into.
Dean Roddey
Explorans limites defectum
I think I will wait until next release. Estimate on when that will be?
Posts: 40,483
Threads: 491
Joined: Aug 2002
Hard to say at this point. Not next week or anything.
Dean Roddey
Explorans limites defectum