bm498 Listboxes

Dialogs


 

bm574         create listbox

bm575         create listbox with edit

bm576         create drop-down listbox

bm577         create drop-down listbox with edit

bm578         create tabs

bm579         add text entry to listbox

bm580         empty of listbox, table

bm581         create table

bm582         width of table column

bm583         align of table column (0=left, 1=right, 2=center)

 

The create... program elements create a dialog element the visibility of which is switched off, return the element identification number and set it as a selected element for the subsequent operations.

 

The text program element sets or returns the text of selected entry of the listbox, text of the list's editing field, or text of the table cell. Current row of the listbox or table can be selected by the actual position element. A cell on the table row can be selected by the actual position 2 element.

 

The create tabs element creates tabs dialog element. Single tabs can be added or deleted similarly as listbox entries. Selected tab can be found out or adjusted with the actual position element and according to the number of selected tab update content of the window (create or delete appropriate dialog elements in the window).

 

As parameter of the create table element a multiline text list defining table columns can be entered. Texts of individual rows are used as titles of the table head. If all rows of the list are empty then the table will have no head. Width of the selected table column can be set or found out by the width of table column element. Column selection is done by the actual position 2 element. If a valid table column is selected (its value is not -1) when changing selected row by the actual position element then position of the table cursor is updated, too. By the align of table column element align of the table column can be changed: 0=left (default), 1=right, 2=center. This proves also in the table head except column 0, head of which is always aligned to the left.