questions about TCanvas editor

From: Tom Roberts <tjrob_at_fnal.gov>
Date: Fri, 12 Jan 2007 08:34:49 -0600


I want to make some small modifications to the editor that appears when you select View/Editor in a canvas containing a TH1D:

  1. have the canvas initially appear with the editor visible (or within a few milliseconds)
  2. have the histogram selected
  3. modify the editor for TH1-s: remove the Binning tab and replace it with one or two of my own tabs
  4. my new tab will include a "lock" checkbox that is initially checked, and when checked will always keep the histogram selected

The documents are rather old and do not mention anything about this editor. At present I do not even know where to look. before I dive into the code I'm hoping someone can give me at least a hint of how it works, where its code is located, etc.

The purpose of the above modifications is to improve the user experience for users of my Root-based application that are unfamiliar with root (e.g. it is disconcerting for some other object to inadvertently get selected when one is trying to edit the histogram style).

Questions:

  1. where is the editor located (i.e. what is its class name)?
  2. how does it get associated with an object in the canvas?
  3. How does it arrange so that when the editor appears, the original Pad remains the only pad in the canvas? Or at least, doing canvas->cd() and then TH1D::Draw() will re-draw the histogram with or without the editor visible. (I would have guessed that the editor creates a new pad, which would have made that not work).

Tom Roberts Received on Fri Jan 12 2007 - 15:35:21 CET

This archive was generated by hypermail 2.2.0 : Fri Jan 12 2007 - 17:50:00 CET