-------------------------------------------------------------------------------------------------------
Columns is
a container for THeaderSection objects.
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.
Controls
the attributes of text written on or in the ComboBox control.
property Font: TFont;
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.
Controls
the attributes of text written on or in the Header control.
property Font: TFont;
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.
-------------------------------------------------------------------------------------------------------
Determines
the way in which the images will appear in the ComboBox.
type TImageMode = (imAll, imImageStates,
imMainColumnOnly
imNoImages);
property ImageMode : TImageMode
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.
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.
-------------------------------------------------------------------------------------------------------
Lists the images that can appear beside individual ComboBox items.
property Images: TCustomImageList;
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.
-------------------------------------------------------------------------------------------------------
Contains the character used to separate the image index from the caption in the
Items Editor.
property ImgSeperator: Char;
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
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.
-------------------------------------------------------------------------------------------------------
Displays a custom image when a column is sorted in ascending order.
property ImgSortDown: TBitmap;
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.
-------------------------------------------------------------------------------------------------------
Displays a custom image when a column is sorted in descending order.
property ImgSortUp: TBitmap;
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.
-------------------------------------------------------------------------------------------------------
Specifies
the height, in pixels, of the items in the drop-down list.
property ItemHeight: Integer;
Use
ItemHeight to specify the height needed to draw the items in the ComboBox.
-------------------------------------------------------------------------------------------------------
Provides
access to the list of items (strings) in the list portion of the combo box.
property Items: TStrings;
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.
//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
-------------------------------------------------------------------------------------------------------
Contains the character used to separate the items of each column from each other in
the Items Editor.
property ItemSeperator: Char;
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.
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.
-------------------------------------------------------------------------------------------------------
Specifies
whether the columns can be sorted
property Sortable: Boolean;
Set
Sortable to determine whether the items in the ComboBox can be sorted by
clicking on
the Header colums to sort.
-------------------------------------------------------------------------------------------------------
Specifies
the direction in which the selected column will be sorted.
type TSortOrder = (soAscending,
soDescending);
property Sortorder : TSortOrder;
Set
SortOrder to specify the direction the selected SortSection will will sort the
items
at startup.
-------------------------------------------------------------------------------------------------------
Specifies
the section index by which the item will be sorted.
property SortSection : Byte;
Set
SortSection to specify by which section the items will be sorted at startup.
-------------------------------------------------------------------------------------------------------
Specifies
the color of the images that will appear transparent.
property TransparentColor : TColor;
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.
-------------------------------------------------------------------------------------------------------