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

You can specify whether you want the gadget window to shrink wrap a gadget using the TGadgetWindow::SetShrinkWrap function.

Shrink wrapping for a gadget window has a slightly different meaning than for a gadget. When a gadget window is shrink wrapped for an axis, the axis' size is calculated automatically based on the desired sizes of the gadgets laid out on that axis.

You can turn shrink wrapping on and off independently for the width and height of the gadget window.

The syntax of the SetShrinkWrap function is

void SetShrinkWrap(bool shrinkWrapWidth, bool shrinkWrapHeight);
  • shrinkWrapWidth turns horizontal shrink wrapping on or off, depending on whether true or false is passed in.
  • shrinkWrapHeight turns vertical shrink wrapping on or off, depending on whether true or false is passed in.