int list(TGCompositeFrame *tg){ if (!fList) return; TGFrameElement *el; TIter next(fList); while ((el = (TGFrameElement *) tg->next())){ } return 0; }