wb_create_items

mixed wb_create_items (int control, mixed items [, bool clear [, mixed param]])

Creates one or more items in a control.

To create a multi-segment status bar, each element of the items array must be an array with a string (that may be empty) and a width. If the width is empty, NULL, zero or very small (up to 4) it will be automatically calculated to the width of the string plus a small margin, or a minimal width if the string is empty or NULL. If the last width is zero or empty it will extend the last segment to the right edge of the status bar independently of the text contents of the last segment.

The return value varies according to the items created.

What it creates

Refer to the following table.

Class

What it creates

ComboBox

One or more combo box items.

ListBox

One or more list box items.

ListView

One or more list view rows.

StatusBar

One or more status bar segments.

TabControl

One or more tab pages.

TreeView

One or more treeview nodes.

See also

wb_delete_items
wb_get_item_count
Control functions