50 if (
f->IsA() != BesGMenuTitle::Class()) {
51 Error(
"AddFrameBefore",
"may only add BesGMenuTitle objects to a menu bar");
62 nw =
new TGFrameElement;
64 nw->fLayout = l ? l : fgDefaultHints;
69 while ((el = (TGFrameElement *) next())) {
71 if (
t->GetMenu() == before) {
72 fList->AddBefore(el, nw);