Revision e3b6895a3dc62f57af3e7019b8a9b76eb97ed790 authored by Olivier Couet on 06 October 2006, 12:12:34 UTC, committed by Olivier Couet on 06 October 2006, 12:12:34 UTC
  replace middle mouse button with left mouse button + shift.


git-svn-id: http://root.cern.ch/svn/root/trunk@16465 27541ba8-7e3a-0410-8455-c3a389f83636
1 parent 117f95c
Raw File
hworld.cxx
// @(#)root/test:$Name:  $:$Id: hworld.cxx,v 1.6 2005/04/23 11:01:34 brun Exp $
// Author: Fons Rademakers   04/04/97

// This small demo shows the traditional "Hello World". Its main use is
// to show how to use ROOT graphics and how to enter the eventloop to
// be able to interact with the graphics.

#include "TApplication.h"
#include "TCanvas.h"
#include "TLine.h"
#include "TPaveLabel.h"

int main(int argc, char **argv)
{
   TApplication theApp("App", &argc, argv);

   TCanvas *c = new TCanvas("c", "The Hello Canvas", 400, 400);
   c->Connect("Closed()", "TApplication", &theApp, "Terminate()");

   TPaveLabel *hello = new TPaveLabel(0.2,0.4,0.8,0.6,"Hello World");
   hello->Draw();
   TPaveLabel *quit = new TPaveLabel(0.2,0.2,0.8,0.3,"Close via menu File/Quit");
   quit->Draw();
   c->Update();
   theApp.Run();
   return 0;
}
back to top