Quick and dirty scaling for iPhone?

3 posts / 0 new
Last post
bdejong
Offline
Last seen: 7 months 3 weeks ago
Joined: 28 Sep 2011 - 13:30
Quick and dirty scaling for iPhone?

Hey guys,

another Q from me: we have an app that runs just fine on iPad (it's really a demo app and not an end-user app) and we want to test it on iPhone.
The app is way too big to fit on the iphone display (accidentally it fits nicely on iPad though).

Is there a quick and dirty way to scale an app down?
Or perhaps some scroll-bars?

- bram

masshacker
Offline
Last seen: 2 weeks 4 days ago
Joined: 8 Jan 2009 - 09:53
Re: Quick and dirty scaling for iPhone?

I 'think' you could do it by applying AffineTransform::scale to your main Component.

ke20
Offline
Last seen: 16 hours 44 min ago
Joined: 8 Feb 2007 - 13:56
Re: Quick and dirty scaling for iPhone?

I think the AffineTransform would work only if all your subcomponent are positioned relatively to the main component.
If you want to add a scrollbar, you may just add a Viewport in your main window then add your component to the Viewport.