TGTab title

Hello! I have a question concerning the manipulation of tab titles (the text that appears on the top of each TGTab … tab!). Is it possible to change its attributes? (e.g. color) If so, which is the easiest way? Thanks,

Filimon

Hi Filimon,

The example included in $ROOTSYS/tutorials/guitest.C shows this way - you can get the pointer of the desired TGTabElement and you can change its background color: // make tab yellow Pixel_t yellow; gClient->GetColorByName("yellow", yellow); TGTabElement *tabel = fTab->GetTabTab("Tab 3"); tabel->ChangeBackground(yellow); Cheers, Ilka