Loading [MathJax]/jax/output/HTML-CSS/config.js
Logo ROOT  
Reference Guide
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
demoshelp.C File Reference

Detailed Description

This macro shows help on running the Demos.

void demoshelp() {
//
new TCanvas("chelp","Help to run demos",200,10,700,500);
TPaveText *welcome = new TPaveText(.1,.8,.9,.97);
welcome->AddText("Welcome to the ROOT demos");
welcome->SetTextFont(32);
welcome->SetTextColor(4);
welcome->SetFillColor(24);
welcome->Draw();
TPaveText *hdemo = new TPaveText(.05,.05,.95,.7);
hdemo->SetTextAlign(12);
hdemo->SetTextFont(52);
hdemo->AddText("- Run demo hsimple.C first. Then in any order");
hdemo->AddText("- Click left mouse button to execute one demo");
hdemo->AddText("- Click right mouse button to see the title of the demo");
hdemo->AddText("- Click on 'Close Bar' to exit from the demo menu");
hdemo->AddText("- Select 'File/Print' to print a Postscript view of the canvas");
hdemo->AddText("- You can execute a demo with the mouse or type commands");
hdemo->AddText("- During the demo (try on this canvas) you can :");
hdemo->AddText(" .... Use left button to move/grow/etc objects");
hdemo->AddText(" .... Use middle button to pop overlapping objects");
hdemo->AddText(" .... Use right button to get an object sensitive pop-up");
hdemo->AddText(" ");
hdemo->SetAllWith("....","color",2);
hdemo->SetAllWith("....","font",72);
hdemo->SetAllWith("....","size",0.04);
hdemo->Draw();
}
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:41
virtual void SetTextColor(Color_t tcolor=1)
Set the text color.
Definition: TAttText.h:43
virtual void SetTextFont(Font_t tfont=62)
Set the text font.
Definition: TAttText.h:45
The Canvas class.
Definition: TCanvas.h:27
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.
Definition: TPaveText.cxx:182
virtual void Draw(Option_t *option="")
Draw this pavetext with its current attributes.
Definition: TPaveText.cxx:233
virtual void SetAllWith(const char *text, Option_t *option, Double_t value)
Set attribute option for all lines containing string text.
Definition: TPaveText.cxx:879
Author
Rene Brun

Definition in file demoshelp.C.