setBackDrop

setBackDrop(pic:               Binary;
            type:              Integer;
            transparentColour: Integer);

The setBackDrop method of the Form class sets the backdrop binary picture image for the form. Use the pic parameter to specify the picture image for the form and the type parameter to specify zero (0) if the specified picture is to be stretched to the entire size or 1 if the picture is to be centered in the middle of the MDI frame.

Use the transparentColour parameter to specify the transparent color (that is, the bitmap is displayed so that the image of the parent shows through the bitmap anywhere that this color appears in the bitmap).

A transparentColour value of zero (0) sets the transparent color to black.

If you do not want a transparent color at all, set the value of transparentColour to -1.

The following example shows the use of the setBackDrop method. The first example uses class constants to make the second and third parameters more meaningful.

self.setBackDrop(self.picBackDrop.picture, BackDrop_Centred,
                 Black_Transparent);
begin
    logo.backColor := backColor;
    picture1.borderStyle := Window.BorderStyle_None;
    if not process.isUsingThinClient then
        setBackDrop(logo.createPicture(false, true, 24), 1, -1);
    endif;
end;