OWLNext 7.0
Borland's Object Windows Library for the modern age
|
Following is the constructor syntax for TBitmapGadget:
The constructor parameters are described in the following table:
Parameter | Description |
bmResId | The resource identifier for the bitmap resource. |
id | The gadget identifier. |
style | The 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. |
startImage | Specifies which bitmap in the array should be initially displayed in the gadget. |
The destructor TBitmapGadget::~TBitmapGadget deletes the storage for the bitmap images.