Logo ROOT   6.10/09
Reference Guide
Files
GUI tutorials

Example code which illustrates how to use the ROOT GUI.

Files

file  buttonChangelabel.C
 This macro gives an example for changing text button labels anytime the Start or Pause buttons are clicked.
 
file  buttongroupState.C
 A simple example that shows the enabled and disabled state of a button group with radio and check buttons.
 
file  buttonsLayout.C
 This macro gives an example of different buttons' layout.
 
file  buttonTest.C
 This macro gives an example of how to set/change text button attributes.
 
file  calendar.C
 This macro gives an example of how to use html widget to display tabular data.
 
file  CPUMeter.C
 Simple macro showing capabilities of the TGSpeedo widget.
 
file  customContextMenu.C
 Example showing how to add a function to the class context menu.
 
file  customTH1Fmenu.C
 Example showing how to customize a context menu for a class.
 
file  drag_and_drop.C
 This tutorial illustrates how to use drag and drop within ROOT.
 
file  exec3.C
 Example of using signal/slot in TCanvas/TPad to get feedback about processed events.
 
file  exec_macro.C
 This utility macro executes the macro "macro" given as first argument and save a capture in a png file.
 
file  games.C
 This macro runs three "games" that each nicely illustrate the graphics capabilities of ROOT.
 
file  gtreeTableTest.C
 This TableTest class is a simple example of how to use a TGTreeTable.
 
file  guilabels.C
 This macro gives an example of how to create different kind of labels and the possibility to enable/disable them.
 
file  guitest.C
 Test program for ROOT native GUI classes Exactly like $ROOTSYS/test/guitest.cxx but using the new signal and slots communication mechanism.
 
file  guitest_playback.C
 This macro plays a recorded ROOT session showing how to perform various interactive GUI operations with the guitest.C macro While replaying the session, several temporary macros (guitest0xx.C) macros will be saved.
 
file  guiWithCINT.C
 A simple example of entering CINT commands and having the CINT output in a ROOT GUI application window.
 
file  iconAsXPMData.C
 A simple example of creating icon image from XPM data, included into the code.
 
file  listBox.C
 This macro gives an example of how to create a list box and how to set and use its multiple selection feature.
 
file  mditest.C
 GUI MDI features.
 
file  ntupleTableTest.C
 This TableTest class is a simple example of how to use a TGTable with a TTreeTableInterface.
 
file  numberEntry.C
 This macro gives an example of how to create a number entry and how to update a label according to the changed value of this number entry.
 
file  QtFileDialog.C
 This is a small ROOT macro to use Qt 3.3 class: QFileDialog See: https://doc.qt.io/archives/3.3/qfiledialog.html#getOpenFileName
 
file  QtMultiFileDialog.C
 This is a small ROOT macro to use Qt 3.3 class :QFileDialog See: https://doc.qt.io/archives/3.3/qfiledialog.html#getOpenFileNames
 
file  QtPrintDialog.C
 This is a small ROOT macro to use Qt 3.3 class: QPrinter to setup the printer via Qt "setup printer dialog" See: Printer setup dialog box and print out the ROOT TCanvas object either via the "can" pointer provided or the current one.
 
file  simpleTableTest.C
 This TableTest class is a simple example of how to use a TGSimpleTable that creates and owns it's own TGSimpleTableInterface.
 
file  Slider3Demo.C
 Simple macro showing capabilities of triple slider.
 
file  splitbuttonTest.C
 A simple example that shows the usage of a TGSplitButton.
 
file  splitterHorizontal.C
 This macro gives an example of how to create a horizontal splitter.
 
file  splitterVertical.C
 This macro gives an example of how to create a vertical splitter.
 
file  staffTableTest.C
 This TableTest class is a simple example of how to use a TGTable with a TTreeTableInterface.
 
file  statusBar.C
 This macro gives an example of how to create a status bar related to an embedded canvas that shows the info of the selected object, exactly as the status bar of any canvas window.
 
file  textEntries.C
 This macro gives an example of how to set/change text entry attributes.
 
file  textviewostream.C
 This macro gives an example of how to use the TGTextViewostream widget.
 
file  WorldMap.C
 This macro shows how to use a TGImageMap class.