OWLNext 7.0
Borland's Object Windows Library for the modern age
|
For a gadget window to be useful, it needs to contain some gadgets.
To place a gadget into the gadget window, use the TGadgetWindow::Insert function:
The following table describes Insert's parameters:
Parameter | Description |
gadget | A reference to the gadget to be inserted into the gadget window. |
placement | Indicates where the gadget should be inserted. The enum TPlacement can have two values, Before and After. If a sibling gadget is specified by the sibling parameter, the gadget is inserted before or after the sibling, depending on the value of placement. If sibling is 0, the gadget is placed at the beginning of the gadgets in the window if placement is Before or at the end of the gadgets if placement is After. |
sibling | A pointer to a sibling gadget. |
If the gadget window has already been created, you need to call TGadgetWindow::LayoutSession after calling Insert. Any gadget you insert will not appear in the window until the window has been laid out.