Does Dynamic Scaling Work on Widgets

Hello, 

I’m going through the API references available for Widgets. 

They all have this one line of note

“The SegmentedControlWidget object does not support scaling nor changing of the width/height via .width or .height.”

Does this mean that Dynamic Scaling will not work on it?

I tried this in the simulator and the Widget ( for instance the ScrollView ) does not adjust size. 

I guess I just need a confirmation rather than assuming.

Thanks!

What it means is you can’t use :scale() to change it’s size. You cannot change it’s width or height. post creation.

Also you cannot set the width and height during creation, so if you use the default skin, you’re going to find that the segment control is going to look like the right size on a 320x480 config.lua setup. If your config.lua uses something like 640x960, its going to be smaller.

You can however provide your own image sheet and custom look. If you use larger graphics, your segment controller will be larger.

Rob

OK. I see…

If I use my own images, do I have create three different sizes (ex.  normal, @2x, @4x) so that I can accommodate the different screen sizes?

If your config.lua contains various sizes then you probably should.  graphics.newImageSheet() knows how to use the right sized image.

Thank you Rob.

What it means is you can’t use :scale() to change it’s size. You cannot change it’s width or height. post creation.

Also you cannot set the width and height during creation, so if you use the default skin, you’re going to find that the segment control is going to look like the right size on a 320x480 config.lua setup. If your config.lua uses something like 640x960, its going to be smaller.

You can however provide your own image sheet and custom look. If you use larger graphics, your segment controller will be larger.

Rob

OK. I see…

If I use my own images, do I have create three different sizes (ex.  normal, @2x, @4x) so that I can accommodate the different screen sizes?

If your config.lua contains various sizes then you probably should.  graphics.newImageSheet() knows how to use the right sized image.

Thank you Rob.