Drop-down List Boxes

 

A drop down list box is a control that can be placed in a dialog box to present a set of discrete choices to the user.  Place the list of options, where each option is surrounded by angle braces < >, in the input area of the menu.  For example, the following menu prompts for the length of the waveform to be generated:

 

// dialog1b.pan

@dialog

 

Generate Random Noise

 

Length <w=20>~GRANDOM(< >,.01)~<100><200><300><400>

<L>

~menuclear

 

 

 

Drop-down list boxes simplify the menu selection process by allowing the user to choose from several options by clicking the left mouse button on the down arrow button that is displayed next to the input field.

 

 

Drop-down list generally provide a fixed number of pre-determined options. However, the * modifier allows the drop-down list to display the options and allow free form input.

 

 

// dialog1b.pan

@dialog

Generate Random Noise

Length <* w=20>~GRANDOM(< >,.01)~<100><200><300><400>

<L>

~menuclear

 

 

 

Now the user can select from a specified list of options or enter a specific value.