OWLNext 7.0
Borland's Object Windows Library for the modern age
|
Here is the TButtonGadget constructor:
where:
Parameter | Description |
bmpResId | The resource identifier for the bitmap resource to be displayed in the button. The size of the bitmap determines the size of the gadget, because shrink wrapping is turned on. |
id | The gadget identifier. This is also the command that is posted when the gadget is pressed. |
type | Specifies the type of the gadget. The TType enum has three possible values:
|
state | The default state of the button gadget. The enum TState can have three values: Up, Down, or Indeterminate. |
repeat | Indicates whether the button repeats when held down. If repeat is true, the button repeats when it is clicked and held. |
The destructor TButtonGadget::~TButtonGadget deletes the bitmap resources and, if the resource information is contained in a string, deletes the storage for the string.