iOS native dialog box

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: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
simon.schvartzman
Posts: 309
Joined: Tue Jul 29, 2014 12:52 am
Location: Brazil

iOS native dialog box

Post by simon.schvartzman » Tue Jun 07, 2016 12:15 am

Hi team, I wonder if there is any way (control / widget / function) to show a dialog box like the native iOS one in the attached image.

Many thanks in advance for any hint..
Attachments
dialog.png
iOS native dialog box

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am
Location: Bordeaux, France

Re: iOS native dialog box

Post by Dixie » Tue Jun 07, 2016 5:35 am

Use mergPop...

simon.schvartzman
Posts: 309
Joined: Tue Jul 29, 2014 12:52 am
Location: Brazil

Re: iOS native dialog box

Post by simon.schvartzman » Tue Jun 07, 2016 1:18 pm

Many thanks Dixie. Anything similar for Android?

Best!
Simon
________________________________________
To ";" or not to ";" that is the question

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 6791
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: iOS native dialog box

Post by FourthWorld » Tue Jun 07, 2016 1:38 pm

The mobilePick function is available for both iOS and Android.
Richard Gaskin
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

simon.schvartzman
Posts: 309
Joined: Tue Jul 29, 2014 12:52 am
Location: Brazil

Re: iOS native dialog box

Post by simon.schvartzman » Tue Jun 07, 2016 1:59 pm

thanks Richard. mobilePick doesn't look so nice as mergPop but will do the job.
Simon
________________________________________
To ";" or not to ";" that is the question

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am
Location: Bordeaux, France

Re: iOS native dialog box

Post by Dixie » Tue Jun 07, 2016 6:51 pm

You could 'roll your own' dialog box to look like that... :-)

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 6791
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: iOS native dialog box

Post by FourthWorld » Tue Jun 07, 2016 7:51 pm

simon.schvartzman wrote:thanks Richard. mobilePick doesn't look so nice as mergPop but will do the job.
MobilePick should be using OS-native appearances. If it looks substantially different from what should be the same OS routines Monte's external is using IMO that would be a bug.
Richard Gaskin
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

simon.schvartzman
Posts: 309
Joined: Tue Jul 29, 2014 12:52 am
Location: Brazil

Re: iOS native dialog box

Post by simon.schvartzman » Wed Jun 08, 2016 6:01 pm

Richard, mobilePick "Presents the user with a native list picker dialog." while mergPop "is an iOS external that adds functions to present an action sheet (popover on iPad) and contextual menu for user interaction."

In other words mobilePick (works fine) brings up the "selection wheel" which is different from what I was originally looking for according to the initial post.

Hope I made myself clear...

Best!
Simon
________________________________________
To ";" or not to ";" that is the question

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 6791
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: iOS native dialog box

Post by FourthWorld » Wed Jun 08, 2016 6:11 pm

All good, Simon. When you'd mentioned LC's use of the OS APIs in mobilePick "doesn't look so nice" I took that to mean it wasn't on par with OS conventions. If it is indeed doing what's expected on iOS it doesn't seem there's a problem.
Richard Gaskin
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”