PDA

View Full Version : Change width and height without screwing up appearance?


seanhess
03-13-2007, 03:49 PM
I want to be able to draw the background for a component, and have it change its size automatically when its contents gets bigger.

However, if I change the height and width, the borders, and everything else gets all messed up.

Is there a way to change the width, but keep the same border size? How would you approach this? I know I can split it into pieces, but that is annoying.

Kazekage
03-14-2007, 11:54 AM
To me it'd sound liek you're trying to set them with the _hiegh and _width property, however if I remember correctly this doesn't work. With components use the function:
UIObject.setSize(200, 200);
Where UIObject is the instance of your component.