Scrolling box with images

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
Howker
Posts: 51
Joined: Thu Jan 22, 2009 4:40 pm

Scrolling box with images

Post by Howker »

Hey there, I'm using the Irrlicht Gui Environment and I want to know how you can create some kind of box with a scrollbar at the bottom, and images inside the box( a lot of images, so with the horizontal scrollbar you can browse through the images in the box). And how do you scale images?
Thanks.
CuteAlien
Admin
Posts: 9720
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Scrolling box with images

Post by CuteAlien »

Not sure if one of the existing elements can be used easily for this. I suspect the best way to do it is to create your own gui-element (lets call it ImageScroller). That ImageScroller has a subelement IGUIScrollBar and an array of IGUIImage. Maybe it's also useful to have some empty IGUIStaticText as background to put your IGUIImage's on it. And then you can enable clipping for that and move it's position in scroll-events. IGUIImage has a function setScaleImage which might do the scaling you need.
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
Howker
Posts: 51
Joined: Thu Jan 22, 2009 4:40 pm

Re: Scrolling box with images

Post by Howker »

thanks, I'll try to create something that works.
Post Reply