ComponentOne List 8.0 for ActiveX
Applying Pictures to List Elements

In earlier versions of True DBList, styles were used to specify font, color, and alignment attributes. Version 6.0 extended the concept of styles to include background and foreground pictures, enabling you to add adornments to headers, footers, and caption bars, specify a background pattern for data cells, and render picture data in cells without having to populate a ValueItems collection. The following properties of the Style object determine how pictures are displayed:

BackgroundPicture

Sets/returns a style's background picture

BackgroundPictureDrawMode

Controls how a style's background picture is displayed

ForegroundPicture

Sets/returns a style's foreground picture

ForegroundPicturePosition

Controls how a style's foreground picture is positioned

TransparentForegroundPicture

True if the foreground picture uses a transparent color

Since picture properties follow the same inheritance rules as other style attributes, any technique described earlier in this chapter also works with pictures. This means that you can attach pictures to a list element using any of the following methods:

See Also

 

 


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

Product Support Forum  |  Documentation Feedback