TransparentBitmap

[property icon] TransparentBitmap

Specifies the transparent color

Integer SYM index property

Applies to: Grid , GridCell

Introduced in KCML version 5.02


[property icon] TransparentBitmap

Specifies the transparent color

Integer SYM index property

Applies to: Button , Picture Button


>

TransparentBitmap

This property is used to set the transparent color for a picture embedded on a picture enabled control such as a button. The pixels set to the transparent color in the picture are not drawn as the button is drawn thus allowing the background to bleed through. This makes the picture embed naturally on any background.

If the NoFill property is set to TRUE then the background color or picture used by the form will replace the specified color, otherwise the background color of the picture as set by the BackColor property is used.

The transparent color is set by specifying an existing color object. For example:

 .picButton1.TransparentBitmap = &.color1
  .gridControl1.Cell(r, c).TransparentBitmap = &.color2

See also

Button methods, properties and events. Grid methods, properties and events. GridCell methods, properties and events. Picture Button methods, properties and events.