CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RootGuiUtils.cc
Go to the documentation of this file.
1 // @(#)root/eve:$Id: SKEL-base.cxx 23035 2008-04-08 09:17:02Z matevz $
2 // Author: Matevz Tadel 2011
3 
5 
6 #include "TGFrame.h"
7 #include "TGLabel.h"
8 #include "TGWidget.h"
9 
10 namespace fireworks_root_gui
11 {
12 
13 TGHorizontalFrame* makeHorizontalFrame(TGCompositeFrame* p)
14 {
15  // Make standard horizontal frame.
16 
17  TGHorizontalFrame* f = new TGHorizontalFrame(p);
18  p->AddFrame(f, new TGLayoutHints(kLHintsNormal|kLHintsExpandX));
19  return f;
20 }
21 
22 TGLabel* makeLabel(TGCompositeFrame* p, const char* txt, int width,
23  int lo, int ro, int to, int bo)
24 {
25  // Make standard label.
26 
27  TGLabel *l = new TGLabel(p, txt);
28  p->AddFrame(l, new TGLayoutHints(kLHintsNormal, lo,ro,to,bo));
29  l->SetTextJustify(kTextRight);
30  l->SetWidth(width);
31  l->ChangeOptions(l->GetOptions() | kFixedWidth);
32  return l;
33 }
34 
35 }
double f[11][100]
TGHorizontalFrame * makeHorizontalFrame(TGCompositeFrame *p=0)
Definition: RootGuiUtils.cc:13
TGLabel * makeLabel(TGCompositeFrame *p, const char *txt, int width, int lo=0, int ro=0, int to=2, int bo=0)
Definition: RootGuiUtils.cc:22