Hi,
How can I modify the color of an entry (in red for example) in a TGListBox ? I have succeed to modify the font using :
const TGFont *ufont; // will reflect user font changes
ufont = gClient->GetFont("-adobe-courier-medium-r-*-*-18-*-*-*-*-*-iso8859-1");
if (!ufont)
ufont = fClient->GetResourcePool()->GetDefaultFont();
TGGC *uGC; // will reflect user GC changes
// graphics context changes
GCValues_t val;
val.fMask = kGCFont;
val.fFont = ufont->GetFontHandle();
uGC = gClient->GetGC(&val, kTRUE);
TGTextLBEntry *entry;
char tmp[20];
for (int i = 0; i < 10; ++i) {
sprintf(tmp, "Entry %i", i+1);
entry = new TGTextLBEntry(fHistoryBox->GetContainer(), new TGString(tmp), i*10, uGC->GetGC(), ufont->GetFontStruct());
fHistoryBox->AddEntry((TGLBEntry *)entry, new TGLayoutHints(kLHintsTop | kLHintsLeft));
}
But I have no idea if it is possible to modify the color.
Thanks in advance
