Page 1 of 1

listbox background color

Posted: Sat Aug 28, 2010 11:20 pm
by Valor
how do i set the list box background color to white and not clear????

Posted: Sun Aug 29, 2010 12:34 am
by Bate

Code: Select all

guienv->getSkin()->setColor(EGDC_WINDOW, SColor(255, 255,255,255));
Should be EGDC_WINDOW, otherwise check out EGUI_DEFAULT_COLOR.

Posted: Mon Jun 06, 2011 3:25 am
by circusdan
I tried that with both of those and it is still clear

Posted: Mon Jun 06, 2011 5:48 am
by Brainsaw
Have you set the "drawBackground" flag of the listbox?

Posted: Mon Jun 06, 2011 8:31 am
by CuteAlien
Try it with EGDC_3D_HIGH_LIGHT.

Posted: Mon Jun 06, 2011 1:56 pm
by circusdan
I'm already using EDGC_HIGH_LIGHT to make my button not transparent, what is the drawBackground flag though?

Posted: Mon Jun 06, 2011 2:50 pm
by CuteAlien
Well, with yourListbox->setDrawBackground you can enabled/disable backround drawing completely. But try EGDC_3D_HIGH_LIGHT (not EDGC_HIGH_LIGHT). This worked here.

Posted: Mon Jun 06, 2011 4:35 pm
by circusdan
I had the3D highlight one and it wasnt doing anyhting, but the setDrawBackground worked, thanks