Best way to get a gallery swipe?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

Best way to get a gallery swipe?

Post by DevBoyLars » Wed Apr 22, 2015 7:42 am

Hi there,
I just wanna give LiveCode another try to resolve the following issue:

I want to show a rectangle (in this case maybe a horizontal slider?) filled with pictures given from a folder (dynamically filled by the user) side by side, but the user can only see one at the same time and needs to swipe with the finger to see the next or the previous one.

What is the best way to realize that in LiveCode? Can anyone give an example of the rectangle/swipe/gallery? It would helps much. I know how to load images from a folder and I know how to calculate which images is shown in the rectangle at the moment, bit I don't know how to get the images into a rectangle, which should only shows one image at the same time until the user swipes.

Something like this (first seconds of the video), but with a flow from picture 1 to picture 2 and not full screen.
https://www.youtube.com/watch?v=XOTp3GiegxU

Thank you :)

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: Best way to get a gallery swipe?

Post by jmburnod » Wed Apr 22, 2015 9:43 am

Hi DevBoyLars,
I saw the video
I don't know if this example is the best way
but Im sure we can make it better 8)
Best regards
Jean-Marc
Attachments
SwipeImage_670_002.livecode.zip
(2.21 KiB) Downloaded 217 times
https://alternatic.ch

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”