pyui.create_layer_list - pytha-3d-cad/pytha-lua-api GitHub Wiki

Create a drop-down list for the user to select a layer. This list cannot be modified.

pyui.create_layer_list(dialog, col_spec)
dialog:create_layer_list(col_spec)

Parameters

Type Description
dialog dialog_handle Dialog where the control is created
col_spec integer or {first, last} Index of the column or specification of the column-span, where the control is placed.

Return value

Type Description
control_handle A handle to the newly created control

Events

When the user changes the selected layer in the drop-list, the on_change handler is called on_change_handler(text, new_index) with one string argument of the selected layer and one integer argument for the index of the newly selected layer.

See also

Control Gallery, insert_control_item, set_control_selection, reset_content, set_on_change_handler, create_drop_list, create_combo_box, create_pen_list, create_linetype_list