use-livecode Digest, Vol 97, Issue 15
sschvarstein at gmail.com
Fri Oct 7 08:45:48 EDT 2011
Thanks a lot Gerry.
I've tried opening directly the jpg images with a browser control and with the autofit option and the zoom works great. :-)
The problem now is that the pictures are landscape orientated and bigger than the browser area, so when I open them they appear top-left aligned and I need them to appear horizontally and vertically centered on the iphone screen.
This is my script:
put the result into sBrowserId
iphoneControlSet sBrowserId, "visible", "true"
iphoneControlSet sBrowserId, "autofit", "true"
iphoneControlSet sBrowserId, "url", "http://www.bytebiscuits.com/projects/indexbook/sobreimpresion_01.jpg"
iphoneControlSet sBrowserId, "rect", the rect of group "Browser"
I couldn´t find any option for changing the alignment.
Is there any way for controlling it or any other way for getting this result ?
El 07/10/2011, a las 05:06, use-livecode-request at lists.runrev.com escribió:
> From: Gerry Orkin <gerry.orkin at gmail.com>
> To: How to use LiveCode <use-livecode at lists.runrev.com>
> Subject: Re: Photo album
> Message-ID: <C10E2E78-1751-4B2C-80F4-92B2CF1252C3 at gmail.com>
> Content-Type: text/plain; charset=us-ascii
> Use a browser control to display the photos.
> On 07/10/2011, at 12:44 PM, Sergio Schvarstein wrote:
>> I need to do exactly what the photo album does on the iPhone and incorporate all 4 gestures on a single image:
>> Pinch, zoom, drag and swipe.
>> I have gone through the multi touch tutorial but the zoom quality is very bad. I need a real zoom, not a pixelated resize.
>> Is there any for doing it with a native iPhone control ?
>> Or any other way ?
>> Sergio Schvarstein
More information about the Use-livecode