New Properties

-------------------------------------------------------------------------------------------------------

Columns

 

Columns is a container for THeaderSection objects.

 

Description

 

Each THeaderSections holds a collection of THeaderSection objects in a THeaderControl. THeaderSections maintains an index of the header sections in its Items array. The Count property contains the number of header sections in the collection. At design time, use the combolistview control’s Columns editor to add, remove, or modify header sections.

-------------------------------------------------------------------------------------------------------

Font

 

Controls the attributes of text written on or in the ComboBox control.

 

property Font: TFont;

 

Description

 

To change to a new font, specify a new TFont object. To modify a font, change the value of the Charset, Color, Height, Name, Pitch, Size, or Style of the TFont object.

-------------------------------------------------------------------------------------------------------

HeaderFont

 

Controls the attributes of text written on or in the Header control.

 

property Font: TFont;

 

Description

 

To change to a new font, specify a new TFont object. To modify a font, change the value of the Charset, Color, Height, Name, Pitch, Size, or Style of the TFont object.

 

-------------------------------------------------------------------------------------------------------

ImageMode

 

Determines the way in which the images will appear in the ComboBox.

 

type TImageMode = (imAll, imImageStates, imMainColumnOnly

  imNoImages);

property ImageMode : TImageMode

 

Description

 

Set ImageMode to change the way the images should appear in the ComboBox.

If no ImageList is selected (Images), an item that is specified to display

an image, will automatically be handled as an item having an image index of -1.

 

Value                           Meaning

 


imAll                             All items has images.

imImageStates              Images are only displayed at items with an image index > -1.

imMainColumnOnly        Images are only displayed at items in the first column.

ImNoImages                  No images are displayed.

 

-------------------------------------------------------------------------------------------------------

 

Images

 

Lists the images that can appear beside individual ComboBox items.

 

property Images: TCustomImageList;

 

Description

 

Use Images to hold the set of images that can appear beside items in the combobox. Individual items set their image index to indicate which image in the list appears to the

left of the item caption.

 

-------------------------------------------------------------------------------------------------------

 

ImgSeperator

 

Contains the character used to separate the image index from the caption in the

Items Editor.

 

property ImgSeperator: Char;

 

Description

 

Default value is ‘:’ Set this property if you need to have a ‘:’ character as part of your

items in the ComboBox. This property separates the image index of the picture of an

item in the Items Editor

 

Example

 

2:South Africa;

 

This means that the image index of the item ‘South Africa’ would be 2. The item would

Only be displayed as ‘South Africa’ at run-time with image 2 of the ImageList next to it.

 

-------------------------------------------------------------------------------------------------------

 

ImgSortDown

 

Displays a custom image when a column is sorted in ascending order.

 

property ImgSortDown: TBitmap;

 

Description

 

Select a custom image to display when a column of the HeaderControl is clicked and

its items are sorted in ascending order. When no image is selected, a default arrow will indicate the sorting direction. This property applies only when the Sortable property is

set to true.

 

-------------------------------------------------------------------------------------------------------

 

ImgSortUp

 

Displays a custom image when a column is sorted in descending order.

 

property ImgSortUp: TBitmap;

 

Description

 

Select a custom image to display when a column of the HeaderControl is clicked and

its items are sorted in descending order. When no image is selected, a default arrow will indicate the sorting direction. This property applies only when the Sortable property is

set to true.

 

-------------------------------------------------------------------------------------------------------

 

ItemHeight

 

Specifies the height, in pixels, of the items in the drop-down list.

 

property ItemHeight: Integer;

 

Description

 

Use ItemHeight to specify the height needed to draw the items in the ComboBox.

-------------------------------------------------------------------------------------------------------

 

Items

 

Provides access to the list of items (strings) in the list portion of the combo box.

 

property Items: TStrings;

 

Description

 

Use Items to access the list of items that appears in the combo box. For each item,

You need to specify its image index of each item, even though it may not have an

image to display. Each item must also be ended with an ItemSeperator.

 

Example

 

//ImgSeperator  = ‘:’

//ItemSeperator = ‘;’

 

-1:Johannesburg;0:Gold;  //Item 0

-1:Pretoria;1:Silver;    //Item 1

-1:Cape Town;2:Bronze;   //Item 2

 

Item 0: Column 0 will have no image. Column 1 will display image 0

Item 1: Column 0 will have no image. Column 1 will display image 1

Item 3: Column 0 will have no image. Column 1 will display image 2

 

Output

 

 

-------------------------------------------------------------------------------------------------------

 

ItemSeperator

 

Contains the character used to separate the items of each column from each other in

the Items Editor.

 

property ItemSeperator: Char;

 

Description

 

Default value is ‘;’ Set this property if you need to have a ‘;’ character as part of your

items in the ComboBox. This property separates the items in the Items Editor from

each other to indicate in which column they are. Every item must be ended with this

character.

 

Example

 

2:South Africa;3:Bronze;

 

This means that there are two items in the row. The item in column 0 will be

‘South Africa’ with an image index of 2 and the item in column 1 will be ‘Bronze’

with an image index of 3.

 

-------------------------------------------------------------------------------------------------------

 

Sortable

 

Specifies whether the columns can be sorted

 

property Sortable: Boolean;

 

Description

 

Set Sortable to determine whether the items in the ComboBox can be sorted by

clicking on the Header colums to sort.

 

-------------------------------------------------------------------------------------------------------

 

SortOrder

 

Specifies the direction in which the selected column will be sorted.

 

type TSortOrder = (soAscending, soDescending);

property Sortorder : TSortOrder;

 

Description

 

Set SortOrder to specify the direction the selected SortSection will will sort the items

at startup.

 

-------------------------------------------------------------------------------------------------------

 

SortSection

 

Specifies the section index by which the item will be sorted.

 

property SortSection : Byte;

 

Description

 

Set SortSection to specify by which section the items will be sorted at startup.

 

-------------------------------------------------------------------------------------------------------

 

TransparentColor

 

Specifies the color of the images that will appear transparent.

 

property TransparentColor : TColor;

 

Description

 

Select the transparent color for when drawing the images. If the images in the

ImageList are set transparent, select a TransparentColor that does not appear in any

of the Images. If the ImageList contains images that all have the same background

color, select their background color as TransparentColor. This property actually sets

the BKColor property of the ImageList.

 

-------------------------------------------------------------------------------------------------------

 

Back to top