TlsBtn.Bitmap

TlsBtn
 

Specifies the bitmap that appears on the selected bitmap button.

property Bitmap: TBitmap;

Description
Use the Open dialog box that appears as an editor in the Object Inspector to choose a bitmap file (with a .BMP extension) to use on the button, or specify a bitmap file at runtime.

You can provide up to two images within a single bitmap. Both images must be the same size and next to each other in a row. The button will display one of these images depending on it's state.

Image position   Button state   Description


First   Up   This image appears when the button is up (unselected).  
Second   Disabled   This image usually appears dimmed to indicate that the button can't be selected.  

If only one image is present, lsBtn will attempt to represent the other state by altering the image slightly. If you aren't satisfied with the results, you can provide an additional image in the bitmap.

If you have multiple images in a bitmap, you must specify the number of images that are in the bitmap with the NumBmps property.

Note:   The lower left pixel of the bitmap is reserved for the "transparent" color. Any pixel in the bitmap which matches that lower left pixel will be transparent.