ComponentOne List 8.0 for ActiveX
Named style inheritance

To see how named style inheritance works, place a list on a form and set the Caption property of the list and its default columns. Set the FooterText property of the default columns and set the ColumnFooters property of the list to True. The list should look something like this.

On the Style Factory property page, expand the Normal node, select its Font property, and check the Bold box. Note that the column headers, column footers, and list caption are all bold, since all built-in styles inherit from the Normal style or one of its children.

Next, expand the Heading node and select its ForeColor property. Choose Standard Colors from the Color Set combo box, and then select White. Note that the text color of both the column headers and the list's caption bar is now white, since the Caption style inherits its color properties from the Heading style. The column footers remain the same because the Footing style inherits from Normal, not Heading.

Finally, expand the Caption node and select its BackColor property. Choose Standard Colors from the Color Set combo box, and then select Gray. Note that the background color of the column headers is not changed, and that the Caption style continues to inherit its text color from its parent style, Heading.

 

 


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

Product Support Forum  |  Documentation Feedback