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

The TGadget constructor syntax is

TGadget(int id = 0, TBorderStyle style = None);

The following table describes the TGadget parameters:

ParameterDescription
idAn arbitrary value used as the identifier number for the gadget. You can use the identifier to identify a particular gadget in a gadget window. Other uses for the gadget identifier are discussed in Identifying a Gadget.
style An enum of type TBorderStyle. There are five possible values for style:
  • None gives the gadget no border style; that is, it has no visible borders.
  • Plain makes the gadget borders visible as lines, much like the border of a window frame.
  • Raised makes the gadget look like it is raised up from the gadget window.
  • Recessed makes the gadget look like it is recessed into the gadget window.
  • Embossed makes the gadget border look like it has an embossed ridge as a border.

The TGadget destructor is declared virtual. The only thing it does is to remove the gadget from its gadget window if that window is still valid.

See Also