Revision 1ff8cfc023263a593b0e186877352756557e2553 authored by Rene Brun on 19 November 2004, 06:46:19 UTC, committed by Rene Brun on 19 November 2004, 06:46:19 UTC
# Default 3d Viewer # by default 3-D views are shown in the pad. # if the next line is activated, the default viewer will be OpenGL #Viewer3D.DefaultDrawOption: ogl git-svn-id: http://root.cern.ch/svn/root/trunk@10564 27541ba8-7e3a-0410-8455-c3a389f83636
1 parent 8524938
xyslider.C
{
//Example of macro featuring two sliders
TFile *f = new TFile("hsimple.root");
TH2F *hpxpy = (TH2F*)f->Get("hpxpy");
TCanvas *c1 = new TCanvas("c1");
TPad *pad = new TPad("pad","lego pad",0.1,0.1,0.98,0.98);
pad->SetFillColor(33);
pad->Draw();
pad->cd();
gStyle->SetFrameFillColor(42);
hpxpy->SetFillColor(46);
hpxpy->Draw("lego1");
c1->cd();
//Create two sliders in main canvas. When button1 will be released
//the macro xysliderAction.C will be called.
TSlider *xslider = new TSlider("xslider","x",0.1,0.02,0.98,0.08);
xslider->SetMethod(".x xysliderAction.C");
TSlider *yslider = new TSlider("yslider","y",0.02,0.1,0.06,0.98);
yslider->SetMethod(".x xysliderAction.C");
}
Computing file changes ...