Thank you.
That fixed the problem with that example script, but I've encountered a different problem.
I want to create a TButton which contains a TLatex object. When I create a canvas with a single button and then draw a latex object within the button, the latex is NOT visible. But, if I run nearly the exact same script, except this time I draw a graph inside the button along with the latex object both the graph and the latex as displayed as I would expect.
I've attached a script which demonstrates.
Thanks,
Dylan
-----Original Message-----
From: Ilka Antcheva [mailto:Ilka.Antcheva_at_cern.ch]
Sent: Tuesday, August 02, 2005 10:06 AM
To: Dylan Maxwell
Cc: roottalk_at_pcroot.cern.ch
Subject: Re: [ROOT] Problem Drawing within TButton
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