Skip to content

pyui.create_linetype_list

fabian-flassig edited this page Jul 31, 2026 · 3 revisions

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

pyui.create_linetype_list(dialog, col_spec)
dialog:create_linetype_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 linetype in the drop-list, the on_change handler is called on_change_handler(text, new_index) with one string argument of the selected linetype and one integer argument for the index of the newly selected linetype.

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_layer_list

Clone this wiki locally