Loading [MathJax]/extensions/MathMenu.js
ROOT
6.12/07
Reference Guide
ROOT Home Page
Main Page
Tutorials
User's Classes
+
Namespaces
Namespace List
+
Namespace Members
+
All
<
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
<
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
u
w
x
+
Enumerations
a
e
f
g
m
p
t
w
y
+
Enumerator
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
w
+
All Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
+
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
w
y
+
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Properties
f
+
Related Functions
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Files
File List
+
File Members
+
All
1
2
3
4
5
6
7
8
9
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Enumerations
c
e
f
i
l
m
p
r
u
x
+
Enumerator
a
c
d
e
f
g
h
i
k
l
n
o
p
r
s
v
w
+
Macros
1
2
3
4
5
6
7
8
9
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
tutorials
gui
customTH1Fmenu.C File Reference
Tutorials
»
GUI tutorials
Detailed Description
Example showing how to customize a context menu for a class.
{
cl =
gROOT
->GetClass(
"TH1F"
);
cl->
MakeCustomMenuList
();
ml = cl->
GetMenuList
();
((
TClassMenuItem
*)ml->At(1))->SetTitle(
"Add histos..."
);
((
TClassMenuItem
*)ml->At(2))->SetTitle(
"Divide histos..."
);
((
TClassMenuItem
*)ml->At(3))->SetTitle(
"Draw panel..."
);
((
TClassMenuItem
*)ml->At(4))->SetTitle(
"Fit one function..."
);
((
TClassMenuItem
*)ml->At(5))->SetTitle(
"Fit panel..."
);
((
TClassMenuItem
*)ml->At(6))->SetTitle(
"Multiply histos..."
);
((
TClassMenuItem
*)ml->At(7))->SetTitle(
"Rebin..."
);
((
TClassMenuItem
*)ml->At(8))->SetTitle(
"Set maximum scale..."
);
((
TClassMenuItem
*)ml->At(9))->SetTitle(
"Set minimum scale..."
);
((
TClassMenuItem
*)ml->At(10))->SetTitle(
"Smooth histogram"
);
((
TClassMenuItem
*)ml->At(12))->SetTitle(
"Set name..."
);
((
TClassMenuItem
*)ml->At(13))->SetTitle(
"Set title..."
);
((
TClassMenuItem
*)ml->At(15))->SetTitle(
"Delete histogram"
);
((
TClassMenuItem
*)ml->At(16))->SetTitle(
"Draw class info"
);
((
TClassMenuItem
*)ml->At(17))->SetTitle(
"Draw clone"
);
((
TClassMenuItem
*)ml->At(18))->SetTitle(
"Dump information"
);
((
TClassMenuItem
*)ml->At(19))->SetTitle(
"Inspect"
);
((
TClassMenuItem
*)ml->At(20))->SetTitle(
"Set drawing option..."
);
((
TClassMenuItem
*)ml->At(22))->SetTitle(
"Set line attributes..."
);
((
TClassMenuItem
*)ml->At(24))->SetTitle(
"Set fill attributes..."
);
((
TClassMenuItem
*)ml->At(26))->SetTitle(
"Set marker attributes..."
);
// Remove separators at the end, between attributes
mi = (
TClassMenuItem
*)ml->At(23);
delete
mi;
mi = (
TClassMenuItem
*)ml->At(24);
delete
mi;
}
Author
Ilka antcheva
Definition in file
customTH1Fmenu.C
.