Say, I have a window containing some boxes (layouts with visible border) and in one of those boxes there is a getfile.gadget present.
Is it possible to traverse an entire layout (outer layer is a window) and retrieve all gadgets (and layouts and images etc.) one by one?
Is it possible to find out whether a given gadgetobject is a getfile.gadget by comparing some field in the object's underlaying struct with getfile.gadget's base as retrieved by IIntuition->OpenClass()?
Is it possible to find the first occurrence of layout.gadget that surrounds a getfile.gadget (first occurrence encountered when working from the getfile.gadget 'outwards')?
What I am up to?
Well, if I want a window to be an appwindow then I somehow want to draw a file onto that window (and an appropriate dropboxzone) and it can be taken for granted that that window contains a getfile.gadget.
I want to 'automate' things a bit. When a window contains a getfile.gadget, I want that window to turn into an AppWindow automatically and the (beveled) box (layout) around that gadget acting as its dropzone.
Seems simple enough, no?