CMS 3D CMS Logo

Functions

fireworks_root_gui Namespace Reference

Functions

TGHorizontalFrame * makeHorizontalFrame (TGCompositeFrame *p=0)
TGLabel * makeLabel (TGCompositeFrame *p, const char *txt, int width, int lo=0, int ro=0, int to=2, int bo=0)

Function Documentation

TGHorizontalFrame * fireworks_root_gui::makeHorizontalFrame ( TGCompositeFrame *  p = 0)

Definition at line 13 of file RootGuiUtils.cc.

References f.

{
   // Make standard horizontal frame.

   TGHorizontalFrame* f = new TGHorizontalFrame(p);
   p->AddFrame(f, new TGLayoutHints(kLHintsNormal|kLHintsExpandX));
   return f;
}
TGLabel * fireworks_root_gui::makeLabel ( TGCompositeFrame *  p,
const char *  txt,
int  width,
int  lo = 0,
int  ro = 0,
int  to = 2,
int  bo = 0 
)

Definition at line 22 of file RootGuiUtils.cc.

References prof2calltree::l.

Referenced by FWGUIEventFilter::FWGUIEventFilter().

{
   // Make standard label.

   TGLabel *l = new TGLabel(p, txt);
   p->AddFrame(l, new TGLayoutHints(kLHintsNormal, lo,ro,to,bo));
   l->SetTextJustify(kTextRight);
   l->SetWidth(width);
   l->ChangeOptions(l->GetOptions() | kFixedWidth);
   return l;
}