<<

Contents

Search

>>

 

Additional Field Attributes Listbox

 

 

Border: Defines the style of the border.

 

Multiple Selection: Several elements can be selected.

 

Sort: The items of the listbox are sorted alphanumerically.

 

Horizontal Scrollbar: If this checkbox is set, a horizontal scrollbar is displayed when needed.

 

Vertical Scrollbar: If this checkbox is set, a vertical scrollbar is displayed when needed.

 

Preallocation: The preallocation of the listbox content can be made with a variable or a constant specification.

 

Preallocation by Variable: The specified variable must contain the items of the listbox at runtime. The items must be separated by a semicolon.

 

Constant Preallocation: The items of the combobox can be filled in.

 

In Listboxes images can be displayed. The name of the image has to be inserted at the beginning of the item with a leading '@' and a trailing ','.

 

Example: FILL_LISTBOX$ =  "@myimage.gif,Image1;Smith:McDonald"

 

Each item of a listbox can have individual colors. The colors have to be added at the end of the item in the following format:

 

#<F-Red,F-Green,F-Blue,B-Red,B-Green,B-Blue>

 

F_Red, F-Green and F-Blue specify the foreground color and B_Red, B-Green and B-Blue specify the background color

 

Example: FILL_LISTBOX$ =  "@myimage.gif,Image1#<255,255,255,255,0,0>;Smith#<0,0,0,255,255,0>;McDonald"

Image1 is displayed white on red and Smith is displayed black on yellow.

 

Button 'OK': Changes are saved and the window is closed.

 

Button 'Cancel': The window is closed. Changes are not saved.