Use one of the following functions to search through the gadgets contained in a gadget window:
TGadget* FirstGadget() const;
TGadget* NextGadget(TGadget&
gadget)
const;
TGadget* GadgetFromPoint(TPoint&
point)
const;
TGadget* GadgetWithId(int id) const;
- TGadgetWindow::FirstGadget returns a pointer to the first gadget in the window's gadget list.
- TGadgetWindow::NextGadget returns a pointer to the next gadget in the window's gadget list. If the current gadget is the last gadget in the window, NextGadget returns 0.
- TGadgetWindow::GadgetFromPoint returns a pointer to the gadget that the point point is in. If point is not in a gadget, GadgetFromPoint returns 0.
- TGadgetWindow::GadgetWithId returns a pointer to the gadget with the gadget identifier id. If no gadget in the window has that gadget identifier, GadgetWithId returns 0.