ComponentOne List 8.0 for ActiveX
Named style defaults

As in Microsoft Word, a Style object in True DBList can inherit its characteristics from another style, referred to as the parent style. For a newly created list, the Normal style is the parent (or grandparent) of all named styles. Its default properties are as follows:

Alignment

3 - General

BackColor

System Window Background

BackgroundPicture

None

BackgroundPictureDrawMode

0 - Center

Font

The ambient font of the list's container

ForeColor

System Window Text

ForegroundPicture

None

ForegroundPicturePosition

0 - Left

Parent

None

TransparentForegroundPicture

False

VerticalAlignment

0 - Top

WrapText

False

Note that the Normal style is a root-level style, since it does not have a value for the Parent property.

The Heading and Footing styles are defined similarly. Each inherits from Normal, and each overrides the following properties:

BackColor

System Button Face

ForeColor

System Button Text

VerticalAlignment

2 - Vertical Center

The Heading style overrides one additional property that the Footing style does not:

WrapText

False

The Selected style also inherits from Normal and overrides two color properties:

BackColor

System Highlight

ForeColor

System Highlight Text

The same is true of the HighlightRow style, which uses the inverse of the color settings for the default Normal style:

BackColor

System Window Text

ForeColor

System Window Background

The EvenRow and OddRow styles inherit from Normal, but only EvenRow overrides any properties:

BackColor

Light Cyan

The only style that does not inherit directly from Normal is Caption, which inherits from Heading. The reason that list and split captions are centered by default is that the Caption style specializes the following property:

Alignment

2 - Center

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback