Hi Dylan,
Your observation is correct. To have this macro working as described,
the line:
button->SetEditable(kTRUE);
should be added. Please see the attached macro but1.C.
The TButton documentation will be changed accordingly.
Cheers, Ilka
Dylan Maxwell wrote:
>Hi Roottalk,
>
>I want to draw a TLatex object within a TButton. As a first step I
>copied the example script from the TButton documentation and ran it.
>The result was not as described in the documentation. Instead of
>drawing a graph within the TButton pad, the script causes a new canvas
>to be created where the graph is then displayed.
>
>I've attached a copy of the example script from:
>http://root.cern.ch/root/html404/TButton.html
>
>I'm running ROOT v4.04/02 on Fedora Core 3.
>
>Thanks.
>
>*******************************************
>Dylan Maxwell
>Optics Metrology Lab,
>Canadian Light Source Inc.,
>Saskatoon, SK, Canada
>Office: (306) 657-3598
>Lab: (306) 657-3564
>Fax: (306) 657-3535
>Email: dylan.maxwell_at_lightsource.ca
>********************************************
>
>
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:11 MET