Changing color of TGNumberEntry ot TGLabel

Hi Rooters,

Is it possible to change the color of the background or the text in a TGNumberEntry or TGLabel?

Urhmax = new TGNumberEntry(hframe3, 900, 6,-1, TGNumberFormat::kNESRealTwo,TGNumberFormat::kNEANonNegative, 			                                            TGNumberFormat::kNELLimitMinMax, 0, 900);
	hframe3->AddFrame(Urhmax, new TGLayoutHints(kLHintsTop | kLHintsLeft, 22, 0, 30, 0));

	Urhmaxtext = new TGLabel(hframe3, "Urhmax [0 900]");
	hframe3->AddFrame(Urhmaxtext, new TGLayoutHints(kLHintsTop | kLHintsLeft, 20, 0, 30, 0));

Thanks

Hi,

Sure! Here is the code:Urhmax->GetNumberEntry()->SetBackgroundColor(0xff0000); // red background Urhmaxtext->SetBackgroundColor(0x00ff00); // green background
Cheers,
Bertrand.

OK thank you very much