Logo ROOT  
Reference Guide
 
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
9void 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}
The Canvas class.
Definition TCanvas.h:23
A Pave (see TPave) with text, lines or/and boxes inside.
Definition TPaveText.h:21