First time here? Check out the FAQ!
x

Encapsulated Class building question.

0 votes
297 views
Hi,

  What parameter field type do i need to select in my Class if I want a pull down list of choices?

I want to build a Class that optimises its efficiency if the user selects something from a pull down menu. I'd love it to be a String but I have no idea how to assign this. In the meantime, I'm just going for a pull down list that contains three integers, which then are used to select the input Sounds to a Sound building script. What is the correct procedure to do this when building from an Example?
asked May 31, 2016 in Capytalk & Smalltalk by cristian-vogel (Master) (8,410 points)

1 Answer

0 votes
In the VCS, you can create a pull down menu by starting with a fader, then from the Options menu setting tic marks and labels, setting the labels you want, and finally changing the widget type to Select from List.

However, in the class editor there's not a way to define the list of options in a pull down list.  Since you have a list with three integers, perhaps you could call this parameter "Cost" or "Efficiency" and let people select from three different levels?
answered May 31, 2016 by ssc (Savant) (127,080 points)
I am being allowed to select a Type called Cost, which turns the parameter field into a pulldown with four integers, but I don't see one called Efficiency.

It is specifically for 'EnvelopeType' and I want a type 1 and a type 2. Is there no way of defining this in the class as a pulldown with symbol list, as in the ADSR (linear / exponential )
OK, I think as I am only offering two options in my design for now, I can make it a boolean which would give the user a true/false tick box.

Thanks SSC.
...