Re: [ROOT] Changing button colors

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Mar 05 2001 - 12:45:52 MET


Hi Craig,
All Root objects that can be filled with a color derive from TAttFill.
This is the case of TButton. You can set the fill color with
  myButton->SetFillColor(color);

Rene Brun

Craig Everton wrote:
> 
> I'm using TControlBar to create a button pad with 10 buttons. I would like
> if possible to change the colours of some of the buttons. Eg make my
> "go" button green whilst leaving the rest of the buttons the same colour.
> Does anyone know how to do this ?
> 
> Thanks in advance
> 
> Craig
> 
> -======================================================
> Craig Everton
> Experimental Particle Physics (EPP)
> School of Physics
> University of Melbourne,  Victoria
> AUSTRALIA    3010
> Phone : (work)   (613) 9344 5075
>         (home)   (613) 9387 6726
> Fax :            (613) 9347 4783
> Email : everton@liszt.ph.unimelb.edu.au
> ======================================================



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:38 MET