ComponentOne True DBGrid Pro 8
ForegroundPicture Property

This property sets or returns the foreground bitmap of a style object.

Syntax

style.ForegroundPicture= variant

Remarks

Read/Write at run time and design time.

If a style has no foreground bitmap, then this property returns a null variant.

You can change a style's foreground bitmap at design time using the Style Factory property page. Or, you can assign a bitmap to the ForegroundPicture property in code at run time:

TDBGrid1.HeadingStyle.ForegroundPicture = LoadPicture("bell.bmp")

Note

Use the ForegroundPicturePosition property to control the placement of the bitmap relative to the cell or heading text when the style is applied to an object. Use the TransparentForegroundPicture property to specify a background mask.

See Also

Style Object

 

 


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

Product Support Forum  |  Documentation Feedback