I request functions to be implemented in PureBasic which allow us to determine the gadget's parent and all of
its children (if it is a container). I'm very well aware of the WinAPI possibilities to do this, but that's not the point.
Having these functions natively would allow doing more generic things with gadgets without keeping track of
them all, using a list or something similar.
Code: Select all
SetGadgetParent(id.i, parent.i) ; Changes the parent of the gadget.
GetGadgetType(id.i) ; Either a window, a container or a gadget.
GetGadgetParent(id.i) ; Parent gadget of the specified gadget.
GetGadgetWindow(id.i) ; ID of the window that contains the gadget.
ExamineGadgetChildren(id.i) ; Examine all children of the specified container.
NextGadgetChild(id.i) ; Move to the next children of the gadget.
FinishGadgetChild(id.i) ; Finish the examination.
ExamineGadgets(id.i) ; Examine all gadgets of a window.
NextGadget(id.i) ; Next gadget in the list.
FinishGadget(id.i) ; Finishes the enumeration.
*removed typo*