how to resize a IGUITabControl

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
mab_5_uk
Posts: 12
Joined: Sun Dec 24, 2006 12:11 am
Location: Swansea

how to resize a IGUITabControl

Post by mab_5_uk »

I would like to know if there is a way to resize a GUI Tab Panel as their seems to be no setSize member, i would like to know if there is a possible way to do this.

Any help would be great.

Cheers
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

The tab control inherits from IGUIElement and that interface has methods that allow you to get and set the rectangle that the control occupies. Just get the old relative rect, grow or shrink it as needed, and then set the relative rect.

Travis
Post Reply