ROOT
Version master
v6.36
v6.34
v6.32
v6.30
v6.28
v6.26
v6.24
v6.22
v6.20
v6.18
v6.16
v6.14
v6.12
v6.10
v6.08
v6.06
Reference Guide
►
ROOT
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
demoshelp.C
Go to the documentation of this file.
1
/// \file
2
/// \ingroup Tutorials
3
/// This macro shows help on running the Demos.
4
///
5
/// \macro_code
6
///
7
/// \author Rene Brun
8
9
void
demoshelp() {
10
//
11
new
TCanvas
(
"chelp"
,
"Help to run demos"
,200,10,700,500);
12
13
TPaveText
*
welcome
=
new
TPaveText
(.1,.8,.9,.97);
14
welcome
->AddText(
"Welcome to the ROOT demos"
);
15
welcome
->SetTextFont(32);
16
welcome
->SetTextColor(4);
17
welcome
->SetFillColor(24);
18
welcome
->Draw();
19
20
TPaveText
*
hdemo
=
new
TPaveText
(.05,.05,.95,.7);
21
hdemo
->SetTextAlign(12);
22
hdemo
->SetTextFont(52);
23
hdemo
->AddText(
"- Run demo hsimple.C first. Then in any order"
);
24
hdemo
->AddText(
"- Click left mouse button to execute one demo"
);
25
hdemo
->AddText(
"- Click right mouse button to see the title of the demo"
);
26
hdemo
->AddText(
"- Click on 'Close Bar' to exit from the demo menu"
);
27
hdemo
->AddText(
"- Select 'File/Print' to print a Postscript view of the canvas"
);
28
hdemo
->AddText(
"- You can execute a demo with the mouse or type commands"
);
29
hdemo
->AddText(
"- During the demo (try on this canvas) you can :"
);
30
hdemo
->AddText(
" .... Use left button to move/grow/etc objects"
);
31
hdemo
->AddText(
" .... Use middle button to pop overlapping objects"
);
32
hdemo
->AddText(
" .... Use right button to get an object sensitive pop-up"
);
33
hdemo
->AddText(
" "
);
34
hdemo
->SetAllWith(
"...."
,
"color"
,2);
35
hdemo
->SetAllWith(
"...."
,
"font"
,72);
36
hdemo
->SetAllWith(
"...."
,
"size"
,0.04);
37
38
hdemo
->Draw();
39
}
ROOT::Detail::TRangeCast
Definition
TCollection.h:311
TCanvas
The Canvas class.
Definition
TCanvas.h:23
TPaveText
A Pave (see TPave) with text, lines or/and boxes inside.
Definition
TPaveText.h:21
demoshelp
Definition
demoshelp.py:1
tutorials
demoshelp.C
ROOT master - Reference Guide Generated on Mon Apr 21 2025 06:30:48 (GVA Time) using Doxygen 1.10.0