OWLNext 7.0
Borland's Object Windows Library for the modern age
|
The gadget's bounding rectangle is the entire area occupied by a gadget.
It is contained in a TRect structure and is composed of the relative X and Y coordinates of the upper left and lower right corners of the gadget in the gadget window. The gadget window uses the bounding rectangle of the gadget to place the gadget. The gadget's bounding rectangle is also important in determining when the user has clicked the gadget.
To find and set the bounding rectangle of a gadget, use the following functions:
Note that SetBounds is declared virtual. The default SetBounds updates only the bounding rectangle data. A derived class can override SetBounds to monitor changes and update the gadget's internal state.