Grayscale

[property icon] Grayscale

The client will display this picture as a grayscale

Boolean property

Applies to: Picture Object

Introduced in KCML version 6.60


>Grayscale

Grayscale

This property instructs KClient to render the picture in a grayed out 'disabled' style like that used by the AutoGray property. It can be used to simulate a disabled state for controls which don't support the Enabled property by switching between a grayed and non-grayed version of the same image.

 REM Color and gray pictures have the same source image
 .ColorPicture.Cache$ = "$PICTURES/CellPicture.png"
 .GrayPicture.Cache$ = "$PICTURES/CellPicture.png"
 REM Set the flag so KClient will gray the image
 .GrayPicture.Grayscale = TRUE
 .gridcontrol1.cell(1,1).Picture = &.ColorPicture;
 .gridcontrol1.cell(1,2).Picture = &.GrayPicture;

See also

Picture Object methods, properties and events.