listbox background color

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Valor
Posts: 40
Joined: Fri Jul 30, 2010 1:20 pm

listbox background color

Post by Valor »

how do i set the list box background color to white and not clear????
Bate
Posts: 364
Joined: Sun Nov 01, 2009 11:39 pm
Location: Germany

Post 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.
Never take advice from someone who likes to give advice, so take my advice and don't take it.
circusdan
Posts: 32
Joined: Thu Jun 02, 2011 10:05 pm
Location: United States

Post by circusdan »

I tried that with both of those and it is still clear
Brainsaw
Posts: 1177
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Post by Brainsaw »

Have you set the "drawBackground" flag of the listbox?
Dustbin::Games on the web: https://www.dustbin-online.de/

Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames
CuteAlien
Admin
Posts: 9716
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Try it with EGDC_3D_HIGH_LIGHT.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
circusdan
Posts: 32
Joined: Thu Jun 02, 2011 10:05 pm
Location: United States

Post by circusdan »

I'm already using EDGC_HIGH_LIGHT to make my button not transparent, what is the drawBackground flag though?
CuteAlien
Admin
Posts: 9716
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post 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.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
circusdan
Posts: 32
Joined: Thu Jun 02, 2011 10:05 pm
Location: United States

Post by circusdan »

I had the3D highlight one and it wasnt doing anyhting, but the setDrawBackground worked, thanks
Post Reply