Size of text (label) in widgets

Hello
I want to know if it is possible to change the size of the text of a widget ; for example
I want to make smaller the label of a TGCheckButton.
Thanks for your anwser
Olivier

Hi Olivier,

Yes, you can set a different font size, color, background, etc. For your check button next lines of code will specify the font you want to use: const TGFont *font = gClient->GetFont("-*-times-medium-r-*-*-8-*-*-*-*-*-*-*"); if (!font) font = gClient->GetResourcePool()->GetDefaultFont(); FontStruct_t labelfont = font->GetFontStruct(); After that you simply do: your_checkbutton->SetFont(labelfont);The macro guilabels.C in $ROOTSYS/tutorials/gui contains examples how to set colors.

Cheers, Ilka

Thank you very much
Olivier