Page 1 of 1

how to resize a IGUITabControl

Posted: Wed Apr 18, 2007 5:51 pm
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

Posted: Wed Apr 18, 2007 7:17 pm
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