CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
fireworks_root_gui Namespace Reference

Functions

TGHorizontalFrame * makeHorizontalFrame (TGCompositeFrame *p=nullptr)
 
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 = nullptr)

Definition at line 11 of file RootGuiUtils.cc.

References validate-o2o-wbm::f.

11  {
12  // Make standard horizontal frame.
13 
14  TGHorizontalFrame* f = new TGHorizontalFrame(p);
15  p->AddFrame(f, new TGLayoutHints(kLHintsNormal | kLHintsExpandX));
16  return f;
17  }
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 19 of file RootGuiUtils.cc.

References cmsLHEtoEOSManager::l.

Referenced by FWGUIEventFilter::FWGUIEventFilter().

19  {
20  // Make standard label.
21 
22  TGLabel* l = new TGLabel(p, txt);
23  p->AddFrame(l, new TGLayoutHints(kLHintsNormal, lo, ro, to, bo));
24  l->SetTextJustify(kTextRight);
25  l->SetWidth(width);
26  l->ChangeOptions(l->GetOptions() | kFixedWidth);
27  return l;
28  }