Combobox list hiding

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
Granyte
Posts: 850
Joined: Tue Jan 25, 2011 11:07 pm
Contact:

Combobox list hiding

Post by Granyte »

Any one knows why or how to fix the combobox list hiding behind other gui elements?
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Combobox list hiding

Post by CuteAlien »

Do you have quick code example to show the problem? Otherwise I have to code that first.
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
Granyte
Posts: 850
Joined: Tue Jan 25, 2011 11:07 pm
Contact:

Re: Combobox list hiding

Post by Granyte »

Well the case seem a little more complicated I originally though it was a bug with the combobox but it seem it's a bug with CGuiPanel.

What is used to determine the draw order in the gui elements?
right now it seem the panel is not properly ordering it's children for draw.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Combobox list hiding

Post by CuteAlien »

The order in which they are added. Children in front of parents. Children added later in front of children added earlier. You can change order with IGUIElement::bringToFront() and IGUIElement::sendToBack().
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
Post Reply