41 if (
f->IsA() != BesGMenuTitle::Class() )
43 Error(
"AddFrameBefore",
"may only add BesGMenuTitle objects to a menu bar" );
55 nw =
new TGFrameElement;
57 nw->fLayout = l ? l : fgDefaultHints;
62 while ( ( el = (TGFrameElement*)next() ) )
65 if (
t->GetMenu() == before )
67 fList->AddBefore( el, nw );