ComboListBox

Displays a list of items in a combo-style list box dialog.

Syntax

rhinoscriptsyntax.ComboListBox ( items, message=None, title=None)

rhinoscript.userinterface.ComboListBox ( items, message=None, title=None)

Parameters

items

Required.  list.  A list of strings.

message

Optional.  String.  A prompt or message.

title

Optional.  String.  A dialog box title.

Returns

String

The selected item if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

layers = rs.LayerNames()

if layers:

    layer = rs.ComboListBox(layers, "Select current layer")

    if layer: rs.CurrentLayer(layer)

 

 

Also See

CheckListBox

ListBox

MultiListbox

PropertyListBox