Logo ROOT  
Reference Guide
 
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}
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
Definition TAttFill.h:37
virtual void SetTextAlign(Short_t align=11)
Set the text alignment.
Definition TAttText.h:42
virtual void SetTextColor(Color_t tcolor=1)
Set the text color.
Definition TAttText.h:44
virtual void SetTextFont(Font_t tfont=62)
Set the text font.
Definition TAttText.h:46
The Canvas class.
Definition TCanvas.h:23
A Pave (see TPave) with text, lines or/and boxes inside.
Definition TPaveText.h:21
virtual TText * AddText(Double_t x1, Double_t y1, const char *label)
Add a new Text line to this pavetext at given coordinates.
virtual void Draw(Option_t *option="")
Draw this pavetext with its current attributes.
virtual void SetAllWith(const char *text, Option_t *option, Double_t value)
Set attribute option for all lines containing string text.