OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
Creating a Gadget Window

TGadgetWindow overrides the default TWindow member function TWindow::Create.

The TGadgetWindow version of TGadgetWindow::Create chooses the initial size based on a number of criteria:

  • Whether shrink wrapping was requested by any of the gadgets in the window
  • The size of the gadgets contained in the window
  • The direction of tiling in the gadget window
  • Whether the gadget window has a border, and the size of that border

Create determines the proper size of the window based on these factors and sets the window size attributes, then calls the base TWindow::Create to actually create the window interface element.