list_box

A DCL list_box component represents a list of text lines with single or multiple selection. A list_box can be clicked in combination with CTRL and/or SHIFT to manipulate its selection. A list_box can be single-column or multi-column. In a multi-column list_box an entire row is always selected, it is not possible to select individual cells. To manipulate selection, cursor keys can be used, also in combination with CTRL and/or SHIFT. Also, character keys can be used to cycle through the rows that begin with that particular character.
In BricsCAD an genuine multi-column control is used. As a result it is possible to have resizable columns and real column labels. BricsCAD tries to detect single-line column labels in the label attribute of legacy dcl code. To specify single- or multi-line column labels, the bcad_label attribute can be used.
A list_box is a child tile.

related attributes

callbacks

  1. When changing the list_box selection by use of the cursor keys or mouse or when hitting enter, a callback with reason CBR_SELECT will be triggered.
  2. When double clicking a list_box, a callback with reason CBR_DOUBLE_CLICK will be triggered.
  3. When a list_box has the allow_accept attribute, a callback will be triggered with the ok button as sender by hitting enter when the image_button has focus or by double clicking the image_button. If no ok button has been defined, done_dialog will be called. The ok button callback happens in addition to the normal CBR_SELECT or CBR_DOUBLE_CLICK callback of the list_box.

© Bricsys NV. All rights reserved.