pickwheel ipad problems?

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

kcwvc52
Posts: 49
Joined: Sun Jun 12, 2011 9:55 pm

pickwheel ipad problems?

Post by kcwvc52 »

first i have noticed if you click away from the pickwheel it will select whatever object is focused. is this a bug or is this correct cause that kinda sucks? also i have made this work by adding a cancel option to the pickwheel. The problem her is when i tell when i say

Code: Select all

put "Cancel" &return before the first item of card button "thepicker"
this causes it to have weird alien symbols beside cancel in the picker when run on the ipad? is this a noted bug or do we have a workaround.

i would like to use this code

Code: Select all

put "Cancel" after the last item item of card button "thepicker"
but i can't set the focus to the last item. still the weird alien symbols with this as well. any workaround suggestions for these problems would be much appreciated.
kcwvc52
Posts: 49
Joined: Sun Jun 12, 2011 9:55 pm

Re: pickwheel ipad problems?

Post by kcwvc52 »

no suggestions?
Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: pickwheel ipad problems?

Post by Dixie »

Hi...

From page 36 of the iOS release notes...

"There are two modes of operation of the pick command, depending on the value of initialIndex. If initialIndex is non-zero, the operation will act as a means to change an existing selection. The item specified by the initial index will be hilited (checked or hilited on iPad), and will be returned by default in the case the user does not choose a new item.

If initialIndex is zero, the operation will act as a means to select from a list of options. The user will be able to cancel the operation by either clicking 'Cancel' (iPhone) or touching outside of the popover (iPad). If the operation is cancelled, 0 will be returned; otherwise the selected item will be
returned."

There is no bug to be found here...

be well

Dixie
kcwvc52
Posts: 49
Joined: Sun Jun 12, 2011 9:55 pm

Re: pickwheel ipad problems?

Post by kcwvc52 »

then why is it putting weird symbols after the cancel when i run it on ios device? that is not mentioned in what you said.
also where do you find that documentation?
Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: pickwheel ipad problems?

Post by Dixie »

Hi...

Does this stack work for you ?

be well

Dixie
Attachments
pickWheelTest.livecode.zip
(6.56 KiB) Downloaded 401 times
Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: pickwheel ipad problems?

Post by Dixie »

Hi..

Sorry.. forgot to tell you where to find the notes
http://www.runrev.com/products/livecode/new-in-461/
be well

Dixie
kcwvc52
Posts: 49
Joined: Sun Jun 12, 2011 9:55 pm

Re: pickwheel ipad problems?

Post by kcwvc52 »

yea i have pickwheel working fine. the only issue i'm having is that when i try to load the pickwheel programmatically it puts extra characters into "Cancel" which is after the last item of the pickwheel. when i select cancel and the extra characters on ios. it still accepts it as cancel but it just doesn't make the interface as clean as i like it to be. it only does this when i run it on ios device? and thanks for the docs

note: i am doing this on the ipad which doesn't make a difference.
Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: pickwheel ipad problems?

Post by Dixie »

Hi...

I don't really understand when you say...
kcwvc52 wrote:it puts extra characters into "Cancel" which is after the last item of the pickwheel
Could you post your script and what you are trying to load into the pickWheel ?

be well

Dixie
kcwvc52
Posts: 49
Joined: Sun Jun 12, 2011 9:55 pm

Re: pickwheel ipad problems?

Post by kcwvc52 »

i can only post part of the code for confidentiality reasons. but i can assure you none of the information after cancel is being entered anywhere in code. i spent hours checking the other day i have just come back around to this issue.

Code: Select all

put "Cancel" after the last item of card button "thepicker" of card "2"
this is what it looks like running on simulator and the device
Screen shot 2011-06-18 at 1.32.09 AM.png
Screen shot 2011-06-18 at 1.32.09 AM.png (14.17 KiB) Viewed 12343 times
Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: pickwheel ipad problems?

Post by Dixie »

Hi...

Well, you're probably right... your secret would not be safe with me :D but for me anyway, it is not possible to give you any suggestions based on that one line of code... your on your own.

take care,

Dixie
kcwvc52
Posts: 49
Joined: Sun Jun 12, 2011 9:55 pm

Re: pickwheel ipad problems?

Post by kcwvc52 »

example.livecode.zip
try this
(1.59 KiB) Downloaded 381 times
well here is a sample application that does the same thing follow the instructions exactly as it says and you will see what i mean. it did not mess up the first time i ran this program but it messed up the second time?
Last edited by kcwvc52 on Sat Jun 18, 2011 8:20 am, edited 1 time in total.
Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: pickwheel ipad problems?

Post by Dixie »

Hi...

You didn't attach the file ...

be well

Dixie
kcwvc52
Posts: 49
Joined: Sun Jun 12, 2011 9:55 pm

Re: pickwheel ipad problems?

Post by kcwvc52 »

check again i updated it i forgot to compress it the first time any ill send it here again
example.livecode.zip
(1.59 KiB) Downloaded 388 times
Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: pickwheel ipad problems?

Post by Dixie »

Hi...

It does not seem to like the word 'Cancel'... I have changed the script in button 1 of your stack... Instead of using 'Cancel', I have substituted it with 'Cancel '... notice the addition of the space... it is working here..

be well

Dixie
Attachments
returnedExample.livecode.zip
(1.85 KiB) Downloaded 386 times
kcwvc52
Posts: 49
Joined: Sun Jun 12, 2011 9:55 pm

Re: pickwheel ipad problems?

Post by kcwvc52 »

seems like i have tried this and it didn't work. i know for sure i tried using "Cancel!" and it still put random characters after it. i can't remember if i tried the space.
Post Reply