Page 1 of 1

Can LC display a list in a picker view, in Android?

Posted: Thu Aug 27, 2015 1:18 pm
by DR White
Can LC display a list in a picker view, in Android?

How?

Thanks,

David

Re: Can LC display a list in a picker view, in Android?

Posted: Thu Aug 27, 2015 6:52 pm
by jacque
Sure. See "mobilePick" in the dictionary.

Re: Can LC display a list in a picker view, in Android?

Posted: Thu Aug 27, 2015 8:05 pm
by DR White
Jacque,

I have spent a couple hours trying to use the information on that topic, but I have not found enough information to create a moblePick using a field, that will work on an Android.

Please refer me to an additional resource or show me an example.

Thanks,

David

Re: Can LC display a list in a picker view, in Android?

Posted: Thu Aug 27, 2015 8:33 pm
by jacque
Given a field that contains this:

cow
horse
dog
cat

You can use this handler:

Code: Select all

on mouseUp
  mobilePick fld 1,0
  answer "result = " && the result
end mouseUp
The answer dialog will return the line number that was chosen. This is the simplest example, you can also add Cancel or Done buttons.

Re: Can LC display a list in a picker view, in Android?

Posted: Fri Aug 28, 2015 5:58 pm
by DR White
Jacque,

That works Good!

Is there a way to control the the Height and Width of the picker?

Thanks,

David

Re: Can LC display a list in a picker view, in Android?

Posted: Sat Aug 29, 2015 3:06 am
by jacque
The appearance of the picker is controlled by the OS, so you get the same standardized size that all apps use.