OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
Constructing and Destroying TBitmapGadget

Following is the constructor syntax for TBitmapGadget:

TBitmapGadget(TResId bmpResId, int id, TBorderStyle style, int numImages, int startImage);

The constructor parameters are described in the following table:

ParameterDescription
bmResIdThe resource identifier for the bitmap resource.
idThe gadget identifier.
styleThe gadget border style.
numImages

The total number of images contained in the bitmap. The gadget figures the width of each single bitmap in the resource by dividing the width of the resource bitmap by numImages.

For example, suppose you pass a bitmap resource to the TBitmapGadget constructor that is 400 pixels wide by 200 pixels high, and you specify numImages as 4. The constructor would divide the bitmap resource into four separate bitmaps, each one 100 pixels wide by 200 pixels high.

startImageSpecifies which bitmap in the array should be initially displayed in the gadget.

The destructor TBitmapGadget::~TBitmapGadget deletes the storage for the bitmap images.

See Also