ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
demoshelp.C
Go to the documentation of this file.
1 void demoshelp() {
2  //
3  new TCanvas("chelp","Help to run demos",200,10,700,500);
4 
5  TPaveText *welcome = new TPaveText(.1,.8,.9,.97);
6  welcome->AddText("Welcome to the ROOT demos");
7  welcome->SetTextFont(32);
8  welcome->SetTextColor(4);
9  welcome->SetFillColor(24);
10  welcome->Draw();
11 
12  TPaveText *hdemo = new TPaveText(.05,.05,.95,.7);
13  hdemo->SetTextAlign(12);
14  hdemo->SetTextFont(52);
15  hdemo->AddText("- Run demo hsimple.C first. Then in any order");
16  hdemo->AddText("- Click left mouse button to execute one demo");
17  hdemo->AddText("- Click right mouse button to see the title of the demo");
18  hdemo->AddText("- Click on 'Close Bar' to exit from the demo menu");
19  hdemo->AddText("- Select 'File/Print' to print a Postscript view of the canvas");
20  hdemo->AddText("- You can execute a demo with the mouse or type commands");
21  hdemo->AddText("- During the demo (try on this canvas) you can :");
22  hdemo->AddText(" .... Use left button to move/grow/etc objects");
23  hdemo->AddText(" .... Use middle button to pop overlapping objects");
24  hdemo->AddText(" .... Use right button to get an object sensitive pop-up");
25  hdemo->AddText(" ");
26  hdemo->SetAllWith("....","color",2);
27  hdemo->SetAllWith("....","font",72);
28  hdemo->SetAllWith("....","size",0.04);
29 
30  hdemo->Draw();
31 }
virtual void Draw(Option_t *option="")
Draw this pavetext with its current attributes.
Definition: TPaveText.cxx:211
virtual TText * AddText(Double_t x1, Double_t y1, const char *label)
Add a new Text line to this pavetext at given coordinates.
Definition: TPaveText.cxx:160
virtual void SetTextFont(Font_t tfont=62)
Definition: TAttText.h:59
virtual void SetTextAlign(Short_t align=11)
Definition: TAttText.h:55
virtual void SetFillColor(Color_t fcolor)
Definition: TAttFill.h:50
void demoshelp()
Definition: demoshelp.C:1
The Canvas class.
Definition: TCanvas.h:48
A Pave (see TPave) with text, lines or/and boxes inside.
Definition: TPaveText.h:35
virtual void SetTextColor(Color_t tcolor=1)
Definition: TAttText.h:57
virtual void SetAllWith(const char *text, Option_t *option, Double_t value)
Set attribute option for all lines containing string text.
Definition: TPaveText.cxx:851