[ROOT] TGLabel + ChangeBackground

From: Otto Schaile (Otto.Schaile@Physik.uni-muenchen.de)
Date: Thu Jul 13 2000 - 11:03:27 MEST


Hi Rooters,
I would like to change the background color of a TGLabel immediatly. 
So I try:
   TGLabel * label =...
..
   ULong_t yellow;
   gClient->GetColorByName("yellow", yellow);
   label->ChangeBackground(yellow);
   gClient->NeedRedraw(label);
...
The color however changes only after  push down - pop up 
of the window the label is in.

Changing text on the other side works immediatly.
Thanks in advance for a hint.

Cheers
Otto 
------------------------------------------------------------------------
Otto Schaile                Sektion Physik, LMU Muenchen
Phone: +49 89 289 14070     Am Coulombwall 1, D-85748 Garching, Germany
GSM:   +49 171 4312031
FAX:   +49 89 289 14072     EMail: Otto.Schaile@Physik.Uni-Muenchen.DE



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:29 MET